2025-09-26 15:08:54 +02:00
|
|
|
"""
|
|
|
|
|
CLI framework core.
|
|
|
|
|
|
|
|
|
|
Provides the main CLI framework and command delegation.
|
|
|
|
|
"""
|
|
|
|
|
|
2025-09-27 09:02:31 +02:00
|
|
|
from typing import Any
|
2025-10-24 21:25:04 +02:00
|
|
|
from .commands import ConfigCommands
|
2025-09-26 15:08:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class CLIFramework:
|
|
|
|
|
"""Main CLI framework that delegates to command classes."""
|
|
|
|
|
|
2025-09-27 09:02:31 +02:00
|
|
|
def __init__(self) -> None:
|
2025-09-29 00:18:27 +02:00
|
|
|
self.config = ConfigCommands()
|
2025-09-26 15:08:54 +02:00
|
|
|
|
2025-09-29 00:18:27 +02:00
|
|
|
# Configuration operations
|
|
|
|
|
def show_config(self, show_sensitive: bool = False) -> None:
|
|
|
|
|
return self.config.show_config(show_sensitive)
|
|
|
|
|
|
|
|
|
|
def validate_config(self, verbose: bool = False) -> None:
|
|
|
|
|
return self.config.validate_config(verbose)
|
|
|
|
|
|
|
|
|
|
def troubleshoot_config(self) -> None:
|
|
|
|
|
return self.config.troubleshoot_config()
|
|
|
|
|
|
|
|
|
|
def check_config_files(self) -> None:
|
|
|
|
|
return self.config.check_config_files()
|