voraus_debian_iso.methods.cli package

Submodules

voraus_debian_iso.methods.cli.cli_build_methods module

Contains all CLI build methods.

voraus_debian_iso.methods.cli.cli_build_methods.build_impl(debian_version, architecture, output_directory)

CLI build implementation.

Parameters:
  • debian_version (str) – The debian version to use.

  • architecture (str) – The architecture to use.

  • output_directory (Path) – The directory where the output ISO file will be saved.

Return type:

None

voraus_debian_iso.methods.cli.cli_common_methods module

Contains common CLI methods.

voraus_debian_iso.methods.cli.cli_common_methods.get_qemu_common_args()

Get the common QEMU arguments.

Return type:

list[str]

Returns:

The common QEMU arguments with KVM support on non CI(GitHub Actions) environments.

voraus_debian_iso.methods.cli.cli_common_methods.try_call_impl(function, *args, **kwargs)

Simple wrapper function that catches keyboard interrupts and other exceptions.

Parameters:
  • function (Callable) – The function to call.

  • args (Any) – The function args.

  • kwargs (Any) – The function kwargs.

Raises:

typer.Exit – On keyboard interrupts or exceptions.

Return type:

None

voraus_debian_iso.methods.cli.cli_install_methods module

Contains all CLI install methods.

voraus_debian_iso.methods.cli.cli_install_methods.install_impl(iso_file, disk_file)

CLI install implementation.

Parameters:
  • iso_file (Path) – The ISO to use for installation.

  • disk_file (Path) – The QEMU disk file to create/use.

Return type:

None

voraus_debian_iso.methods.cli.cli_start_methods module

Contains all CLI start methods.

voraus_debian_iso.methods.cli.cli_start_methods.get_ssh_connection(username='localuser')

Establishes an SSH connection to the QEMU VM.

Parameters:

username (str) – The username to use for the SSH connection.

Yields:

The SSH connection.

Return type:

Generator[Connection, None, None]

voraus_debian_iso.methods.cli.cli_start_methods.start_impl(disk_file, gui=False)

CLI start implementation.

Parameters:
  • disk_file (Path) – The QEMU disk file to start.

  • gui (bool) – Whether to start the VM with a GUI.

Raises:

FileNotFoundError – If the disk file doesn’t exist.

Return type:

None

voraus_debian_iso.methods.cli.cli_stop_methods module

Contains all CLI stop methods.

voraus_debian_iso.methods.cli.cli_stop_methods.stop_impl()

CLI stop implementation.

Raises:

Exception – If anything goes wrong.

Return type:

None

Module contents

Contains all CLI methods.