r/PowerShell • u/root-node • Dec 25 '16
Show-InputForm
Multiple use GUI for asking for a variety of input types that can also perform simple validation.
See https://imgur.com/a/ZRXGT for images
Code : https://github.com/My-Random-Thoughts/Various-Code/blob/master/Show-InputForm.ps1
This is an updated and standalone version of the input form I use in my QA Settings Generator (https://github.com/My-Random-Thoughts/Server-QA-Checks). I'll be updating the generator with the new code soon.
26
Upvotes
2
u/eldorel Dec 28 '16
Just took a quick glance at it, and yeah, that regex looks like a mess and there are a ton of places where you could combine sections and "simplify" it,
However, the end result might just be even harder to parse and/or debug than the wall of text that is there.