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

Method EnterAction

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

* @brief Add a global enter action that is called every time a session (local or remote) is established. * * @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

144 * @param action the function to be called when a session exits, taking a @c std::ostream& parameter to write on that session console.
145 */
146 void EnterAction(const std::function< void(std::ostream&)>& action) { enterAction = action; }
147
148 /**
149 * @brief Add a global exit action that is called every time a session (local or remote) gets the "exit" command.

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.45
EnterMethod · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36