private void PromptUser(IUIOptionCollection options) { Console.WriteLine("Select:"); foreach (var opt in options.Options) { Console.WriteLine(opt.Title); } }
private void Start() { //Setup cli command processor CLIProcessor processor = SetupProcessor(); //Setup which options we want users to be able to enter _options = SetupOptions(processor); //assign options to the processor processor.OptionCollection = _options; PromptUser(_options); //Starts the cli processor. Will cause the program to enter a repeating loop that waits for user input //You can exit this loop by calling processor.Stop() processor.Start(); }