| 336 | } |
| 337 | |
| 338 | void Exit() |
| 339 | { |
| 340 | exitAction(out); |
| 341 | cli.ExitAction(out); |
| 342 | |
| 343 | auto cmds = history.GetCommands(); |
| 344 | cli.StoreCommands(cmds); |
| 345 | |
| 346 | exit = true; // prevent the prompt to be shown |
| 347 | } |
| 348 | |
| 349 | void EnterAction(const std::function<void(std::ostream&)>& action) |
| 350 | { |
no test coverage detected