primus.cli.shared.CommandLineInterface module

Main entry point for the Primus CLI.

class primus.cli.shared.CommandLineInterface.OrderCommands(name: str | None = None, commands: MutableMapping[str, Command] | Sequence[Command] | None = None, **attrs: Any)

Bases: Group

list_commands(ctx: Context) → list[str]

Returns a list of subcommand names in the order they should appear.

primus.cli.shared.CommandLineInterface.main()

Primus Command Line Interface. This function is the entry point when the primus command is run.