waft.cli.waft_sync module

This module functions as both a WAFT CLI subcommand and Git pre-commit hook.

waft.cli.waft_sync.run() int

Update qa/.venv and WAFT CLI docs.

Returns:

Exit code of the process, negative for signals.

Return type:

Integer

waft.cli.waft_sync.run_command(command: str, cwd: Path, echo: bool = True) CompletedProcess

Run command with arguments and return a CompletedProcess instance.

Parameters:
  • command (str) – System command to execute

  • cwd (Path) – Working directory path to execute the command

  • echo (bool, optional) – True to echo the command and output to the console. Defaults to True.

Returns:

Completed process result object

Return type:

subprocess.CompletedProcess