interactive
appimage_updater.ui.interactive
¶
Interactive mode utilities for AppImage Updater commands - Refactored for testability.
This module provides interactive prompts and guidance for commands that take parameters, making the CLI more user-friendly for new users. The refactored version uses dependency injection to make the code easily testable.
ConfirmInterface
¶
IntPromptInterface
¶
InteractiveAddHandler(console=None, prompt=None, confirm=None, int_prompt=None)
¶
Handler for interactive add command with dependency injection.
Source code in src/appimage_updater/ui/interactive.py
confirm = confirm or Confirm
instance-attribute
¶
console = console or Console()
instance-attribute
¶
int_prompt = int_prompt or IntPrompt
instance-attribute
¶
prompt = prompt or Prompt
instance-attribute
¶
interactive_add_command()
¶
Interactive mode for the add command.
Source code in src/appimage_updater/ui/interactive.py
PromptInterface
¶
interactive_add_command()
¶
Interactive mode for the add command - backward compatibility wrapper.