watcherclient.v1.service_shell module

class watcherclient.v1.service_shell.ListService(app: App, app_args: Namespace | None, cmd_name: str | None = None)[source]

Bases: Lister

List information on retrieved services.

app_dist_name: ty.Optional[str]
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.service_shell.ListService (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class watcherclient.v1.service_shell.ShowService(app: App, app_args: Namespace | None, cmd_name: str | None = None)[source]

Bases: ShowOne

Show detailed information about a given service.

app_dist_name: ty.Optional[str]
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.service_shell.ShowService (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.