buildgrid.server.app.cli module

CommandLineInterface

Any files in the commands/ folder with the name cmd_*.py will be attempted to be imported.

class buildgrid.server.app.cli.Context

Bases: object

class buildgrid.server.app.cli.App(name: str | None = None, invoke_without_command: bool = False, no_args_is_help: bool | None = None, subcommand_metavar: str | None = None, chain: bool = False, result_callback: Callable[[...], Any] | None = None, **attrs: Any)

Bases: MultiCommand

list_commands(ctx: Any) List[str]

Lists available command names.

get_command(ctx: Any, cmd_name: str) Command

Looks-up and loads a particular command by name.

class buildgrid.server.app.cli.DebugFilter(debug_domains: str, name: str = '')

Bases: Filter

filter(record: LogRecord) bool

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.

class buildgrid.server.app.cli.RequestIdFilter(name='')

Bases: Filter

filter(record: LogRecord) bool

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.

buildgrid.server.app.cli.setup_logging(verbosity: int = 0, debug_mode: bool = False) None

Deals with loggers verbosity