simdb.cli.commands.remote module

class simdb.cli.commands.remote.RemoteGroup(name: str | None = None, commands: MutableMapping[str, Command] | Sequence[Command] | None = None, **attrs: Any)[source]

Bases: Group

parse_args(ctx, args)[source]

Given a context and a list of arguments this creates the parser and parses the arguments, then modifies the context as necessary. This is automatically invoked by make_context().

class simdb.cli.commands.remote.RemoteSubGroup(name: str | None = None, commands: MutableMapping[str, Command] | Sequence[Command] | None = None, **attrs: Any)[source]

Bases: Group

format_usage(ctx, formatter)[source]

Writes the usage line into the formatter.

This is a low-level method called by get_usage().

simdb.cli.commands.remote.is_empty(value) bool[source]
simdb.cli.commands.remote.remote_command_cls(subgroup: str = '') Type[source]

Customise the RemoteCommand class to hold the name of the subgroup if provided. This is required to properly format the help string for subgroup commands.