Skip to content

show_command

appimage_updater.commands.show_command

Show command implementation.

ShowCommand(params)

Command to show application details.

Source code in src/appimage_updater/commands/show_command.py
def __init__(self, params: ShowParams):
    super().__init__()
    self.params = params

params = params instance-attribute

execute(output_formatter=None) async

Execute the show command.

Source code in src/appimage_updater/commands/show_command.py
async def execute(self, output_formatter: Any = None) -> CommandResult:
    """Execute the show command."""
    configure_logging(debug=self.params.debug)

    try:
        validation_result = self._handle_validation_errors()
        if validation_result:
            return validation_result

        success = await self._execute_operation(output_formatter)
        return self._create_result(success)

    except Exception as e:
        logger.error(f"Unexpected error in show command: {e}")
        logger.exception("Full exception details")
        return CommandResult(success=False, message=str(e), exit_code=1)

validate()

Validate command parameters.

Source code in src/appimage_updater/commands/show_command.py
def validate(self) -> list[str]:
    """Validate command parameters."""
    # No validation errors - app_names is optional
    # If no app_names provided, show all applications
    return []