Skip to content

list_handler

appimage_updater.cli.handlers.list_handler

List command handler for CLI.

ListCommandHandler

Handler for the list command.

get_command_name()

Get the name of this command.

Source code in src/appimage_updater/cli/handlers/list_handler.py
def get_command_name(self) -> str:
    """Get the name of this command."""
    return "list"

register_command(app)

Register the list command with the Typer application.

Source code in src/appimage_updater/cli/handlers/list_handler.py
def register_command(self, app: typer.Typer) -> None:
    """Register the list command with the Typer application."""

    @app.command(name="list")
    def list_apps(
        config_dir: Path | None = CLIOptions.CONFIG_DIR_OPTION,
        debug: bool = CLIOptions.debug_option(),
        output_format: OutputFormat = CLIOptions.FORMAT_OPTION,
        _version: bool = CLIOptions.version_option(self._version_callback),
    ) -> None:
        """List all configured applications.

        Shows a summary of all applications in the configuration with their current status.
        """
        self._execute_list_command(
            config_dir=config_dir,
            debug=debug,
            output_format=output_format,
        )