command
appimage_updater.config.command
¶
Configuration management command implementation.
console = Console(no_color=(bool(os.environ.get('NO_COLOR', ''))))
module-attribute
¶
logger = logging.getLogger(__name__)
module-attribute
¶
list_settings(config_file=None, config_dir=None)
¶
List all available configuration settings with descriptions.
Source code in src/appimage_updater/config/command.py
reset_global_config(config_file=None, config_dir=None)
¶
Reset global configuration to defaults.
Returns:
| Type | Description |
|---|---|
bool
|
True if successful, False if error occurred |
Source code in src/appimage_updater/config/command.py
set_global_config_value(setting, value, config_file=None, config_dir=None, global_manager_factory=GlobalConfigManager)
¶
Set a global configuration value.
Returns:
| Type | Description |
|---|---|
bool
|
True if the setting was applied successfully, False otherwise. |
Source code in src/appimage_updater/config/command.py
show_effective_config(app_name, config_file=None, config_dir=None, app_configs_factory=AppConfigs, formatter_factory=get_output_formatter)
¶
Show effective configuration for a specific application.
The additional parameters are primarily for testing, allowing injection of factories for configuration loading and output formatting without touching the actual file system or global formatter state.
Source code in src/appimage_updater/config/command.py
show_global_config(config_file=None, config_dir=None, app_configs_factory=AppConfigs, formatter_factory=get_output_formatter)
¶
Show current global configuration.
The additional parameters are primarily for testing, allowing injection of factories for configuration loading and output formatting without touching the actual file system or global formatter state.
Source code in src/appimage_updater/config/command.py
update_config_from_defaults(config_file=None, config_dir=None, app_configs_factory=AppConfigs, manager_factory=Manager)
¶
Rewrite configuration files based on current global defaults.
This action reloads the full directory-based configuration (global + applications) and then saves it back out using the same directory-based serializer used by edit --update. The primary purpose is to ensure that all application configs and the global config reflect the latest default path rules (e.g. relative paths, home-shortened globals).