MCPcopy Create free account
hub / github.com/daniele77/cli / Exit

Method Exit

include/cli/cli.h:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

NewCommandMethod · 0.80

Calls 3

StoreCommandsMethod · 0.80
ExitActionMethod · 0.45
GetCommandsMethod · 0.45

Tested by

no test coverage detected