Library: OSP/Shell
Package: Shell
Header: Poco/OSP/Shell/QuitCommand.h
QuitCommand implements the "quit" command.
Executing the command returns a negative return code, which causes the ShellConnection object to close the connection.
The help text of the quit command can be customized by providing the following bundle properties:
Direct Base Classes: AbstractCommand
All Base Classes: AbstractCommand, Command
Member Functions: executeImpl
Inherited Functions: commandName, defineOptions, displayHelp, execute, executeImpl, handleHelp, handleOption, options, processOptions, stopOptionsProcessing
QuitCommand(
Poco::OSP::BundleContext::Ptr pContext
);
Creates the QuitCommand.
~QuitCommand();
Destroys the QuitCommand.
virtual int executeImpl(
Session & session,
const std::vector < std::string > & args,
std::ostream & ostr
);