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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user