CommandComplete is a simple text parser for pulling out a command with any parameter names/values.
There is also built-in suppport for using the library within a console application, with the ability to autocomplete command and parameter names when hitting the Tab key. The gif below is from the test client for this repository here. You can refer to that to learn how to use the library. The NuGet package is hosted here.
- Parses command name with parameters from a given string
- Parameters can be Valued or Flags
- Valued Parameters are parameters that must be given a value (you know, the most common form of parameter)
- Flag Parameters are parameters that don't need a value. The presence means something for your app.
- Parameters can be Valued or Flags
- Command text is space-delimited, but wrapping parameter values with double quotes will allow a space to be used.
- Ex: Command1 -Param1 "Some Value"
- Param1 will have the value of "Some Value" but without the double quotes.
- Ex: Command1 -Param1 "Some Value"
- Hitting Tab key will predict command name or parameter name.
- Hitting Escape key deletes current item being entered.
- Ex: With text, "Command1 -Param1 Value -Param2" when hitting Escape, the -Param2 part will be removed.
- Hitting Up/Down arrow keys will replace the text entered with what has previously been entered into the buffer.
- Currently hard coded to a max of 10.