betty.cli package

Subpackages

Submodules

Module contents

Provide the Command Line Interface.

betty.cli.ctx_app(ctx: Context) App[source]

Get the running application from a context.

Parameters:

ctx – The context to get the application from. Defaults to the current context.

betty.cli.main(*args: str) Any[source]

Launch Betty’s Command-Line Interface.

This is a stand-alone entry point that will manage an event loop and Betty application.

async betty.cli.new_main_command(app: App) Command[source]

Create a new Click command for the Betty Command Line Interface.