Skip to content

repository_command

appimage_updater.commands.repository_command

Repository command implementation.

RepositoryCommand(params)

Command to examine repositories.

Source code in src/appimage_updater/commands/repository_command.py
def __init__(self, params: RepositoryParams):
    self.params = params
    self.console = Console()

console = Console() instance-attribute

params = params instance-attribute

execute(output_formatter=None) async

Execute the repository command.

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

    try:
        # Execute main repository workflow
        return await self._execute_main_repository_workflow(output_formatter)

    except Exception as e:
        return self._handle_repository_execution_error(e)

validate()

Validate command parameters.

Source code in src/appimage_updater/commands/repository_command.py
def validate(self) -> list[str]:
    """Validate command parameters."""
    errors = []

    if not self.params.app_names:
        errors.append("At least one application name is required")

    return errors