waft.cli package

class waft.cli.OnExit

Bases: object

Class to manage CLI exit conditions.

last_exc: Exception | None = None
return_code = 0
show_traceback = False
class waft.cli.Systems

Bases: object

Interface to iterate multisystem WAFT connections and instances.

classmethod iterate_sftp() Iterator[SFTPClient]

Iterate WAFT test system SFTP connections.

classmethod iterate_waft() Iterator[Waft]

Iterate WAFT test system instances.

system_names: list[str]
waft_instances: list[Waft] = []
waft.cli.callback_systems_defaulted(systems: ~typing.Annotated[list[str], <typer.models.OptionInfo object at 0x7f78599f7e90>] = SystemsDefault.ALL, config: ~typing.Annotated[~pathlib.Path | None, <typer.models.OptionInfo object at 0x7f785a2b2010>] = None)

Execute commands on the systems specified (all, by default).

waft.cli.callback_systems_required(systems: ~typing.Annotated[list[str], <typer.models.OptionInfo object at 0x7f78599f7e90>], config: ~typing.Annotated[~pathlib.Path | None, <typer.models.OptionInfo object at 0x7f785a2b2010>] = None)

Execute commands on the systems specified.

waft.cli.print_error(exc: Exception, preface: str = '')

Display exception as an error printed to the console.

Submodules