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

Method ExitAction

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

* @brief Add a global exit action that is called every time a session (local or remote) gets the "exit" command. * * @param action the function to be called when a session exits, taking a @c std::ostream& parameter to write on that session console. */

Source from the content-addressed store, hash-verified

151 * @param action the function to be called when a session exits, taking a @c std::ostream& parameter to write on that session console.
152 */
153 void ExitAction(const std::function< void(std::ostream&)>& action) { exitAction = action; }
154
155 /**
156 * @brief Add an handler that will be called when a @c std::exception (or derived) is thrown inside a command handler.

Callers 9

BOOST_AUTO_TEST_CASEFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
UserInterfaceMethod · 0.45
UserInterfaceMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
ExitMethod · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36