cmd2.plugin

class cmd2.plugin.PostparsingData(stop: bool, statement: cmd2.parsing.Statement)

Data class containing information passed to postparsing hook methods

stop

Request the command loop terminate by setting True

statement

The Statement object parsed from user input

class cmd2.plugin.PrecommandData(statement: cmd2.parsing.Statement)

Data class containing information passed to precommand hook methods

statement

The Statement object parsed from user input

class cmd2.plugin.PostcommandData(stop: bool, statement: cmd2.parsing.Statement)

Data class containing information passed to postcommand hook methods

stop

Request the command loop terminate by setting True

statement

The Statement object parsed from user input

class cmd2.plugin.CommandFinalizationData(stop: bool, statement: Optional[cmd2.parsing.Statement])

Data class containing information passed to command finalization hook methods

stop

Request the command loop terminate by setting True

statement

The Statement object parsed from user input