Skip to content

# cmd2.plugin

## `` cmd2.plugin

Classes for the cmd2 lifecycle hooks that you can register multiple callback functions/methods with.

### `` PostparsingData `dataclass`

    PostparsingData(stop, statement)

Data class containing information passed to postparsing hook methods.

#### `` stop `instance-attribute`

    stop

#### `` statement `instance-attribute`

    statement

### `` PrecommandData `dataclass`

    PrecommandData(statement)

Data class containing information passed to precommand hook methods.

#### `` statement `instance-attribute`

    statement

### `` PostcommandData `dataclass`

    PostcommandData(stop, statement)

Data class containing information passed to postcommand hook methods.

#### `` stop `instance-attribute`

    stop

#### `` statement `instance-attribute`

    statement

### `` CommandFinalizationData `dataclass`

    CommandFinalizationData(stop, statement)

Data class containing information passed to command finalization hook methods.

#### `` stop `instance-attribute`

    stop

#### `` statement `instance-attribute`

    statement