A template-based asynchronous command line interface based on asio.
More...
#include <cli.hpp>
|
| CLI (asio::io_context &context_, CommandHandler &handler_) |
| Initialize a new command line interface. More...
|
|
template<typename CommandHandler>
class CLI< CommandHandler >
A template-based asynchronous command line interface based on asio.
- Template Parameters
-
CommandHandler | a callback handler type for handling string commands |
◆ CLI()
template<typename CommandHandler >
CLI< CommandHandler >::CLI |
( |
asio::io_context & |
context_, |
|
|
CommandHandler & |
handler_ |
|
) |
| |
|
inline |
Initialize a new command line interface.
- Parameters
-
context_ | the context to create the CLI with |
handler_ | the handler to pass commands to |
The documentation for this class was generated from the following file: