FlaskBB CLI Hooks¶
These hooks are only invoked when using the flaskbb
CLI.
-
flaskbb.plugins.spec.
flaskbb_cli
(cli, app)¶ Hook for registering CLI commands.
For example:
@impl def flaskbb_cli(cli): @cli.command() def testplugin(): click.echo("Hello Testplugin") return testplugin
Parameters: - app – The application object.
- cli – The FlaskBBGroup CLI object.
-
flaskbb.plugins.spec.
flaskbb_shell_context
()¶ Hook for registering shell context handlers Expected to return a single callable function that returns a dictionary or iterable of key value pairs.