Poco::OSP::Shell

class QuitCommand

Library: OSP/Shell
Package: Shell
Header: Poco/OSP/Shell/QuitCommand.h

Description

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:

  • quit.description: The description of the command.
  • quit.usage: The usage string.

Inheritance

Direct Base Classes: AbstractCommand

All Base Classes: AbstractCommand, Command

Member Summary

Member Functions: executeImpl

Inherited Functions: commandName, defineOptions, displayHelp, execute, executeImpl, handleHelp, handleOption, options, processOptions, stopOptionsProcessing

Constructors

QuitCommand

QuitCommand(
    Poco::OSP::BundleContext::Ptr pContext
);

Creates the QuitCommand.

Destructor

~QuitCommand virtual

~QuitCommand();

Destroys the QuitCommand.

Member Functions

executeImpl protected virtual

virtual int executeImpl(
    Session & session,
    const std::vector < std::string > & args,
    std::ostream & ostr
);