fix: replace all print() with click.echo() or logger in CLI production code

- 55 CLI files: handlers/, aitbc_cli/commands/, cli/core/, cli/utils/, top-level scripts
- Click-based files: print() -> click.echo()
- Library modules: print() -> logger.info/error/warning
- Fixed pre-existing indentation bugs in monitor.py dashboard function
- Fixed bare print() -> logger.info('') in chain_manager.py
- 0 remaining print() in production CLI code
- All files compile cleanly
This commit is contained in:
aitbc
2026-05-25 13:53:49 +02:00
parent b9b70923d5
commit a7b6e39cdf
126 changed files with 20949 additions and 1071 deletions

View File

@@ -1,3 +1,6 @@
import logging
logger = logging.getLogger(__name__)
"""{{COMMAND_NAME}} command handlers."""
def handle_{{COMMAND_NAME}}_action(args, render_mapping):
@@ -11,5 +14,5 @@ def handle_{{COMMAND_NAME}}_action(args, render_mapping):
"timestamp": __import__('datetime').datetime.now().isoformat()
}
print(f"{{COMMAND_NAME}} executed with option: {option_value}")
logger.info(f"{{COMMAND_NAME}} executed with option: {option_value}")
render_mapping("Result:", result)