cli
cli copied to clipboard
A library for interactive command line interfaces in modern C++
## Overview It seems that `test_standaloneasioscheduler.cpp` is to test non boost asio scheduler. However, it is compiled end outputs error with only CLI_UseBoostAsio=ON. ## Environment ### cli version master af87753d86e5b2e16e5aebd07da7cd839a7fc4d...
I see that the history is storing all command in it, known, unknown and the ones that return errors. Is there an option to store only the commands that run...
Is it possible to view the commands history, as in bash shell and execute one them with bang followed by command number, e.g.: `!5` to run the 5th command in...
``` root_menu->Insert( "show_updt", [&](ostream& out, uint32_t cnt = 1) { // do stuff //... }, "Show next x updates"); ``` I tried registering the above handler, expecting the command to...
I want to add a command `quit` that does just what the built-in command `exit` does. Users of my application complain that they get an error when they type `quit`!
Is there support for flags on the command line? ``` auto root_menu_p = make_unique("demo"); root_menu_p->Insert("reboot", [&](std::ostream& out, uint32_t delay_s, bool force) { // blah // blah }, "Reboots after given...
``` demo> help Commands available: - help This help message - exit Quit the session - show_updt Show next x updates demo> help show_updt wrong command: help show_updt demo> help...
Does not seem to work in my app, is it supported?
Let's say you have a `rootMenu` and a `printMenu`, I think it's weird to allow the user to enter a sub menu just for printing. I would just like to...
I'm running the software on Window10. The following snippet reproduces the behavior: ```c++ int main() { std::atexit([]() { std::cout