ccproxy.utils.cli_logging¶
ccproxy.utils.cli_logging
¶
Dynamic CLI logging utilities.
log_cli_info
¶
Log CLI information dynamically for each CLI found.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cli_info_dict
|
dict[str, CLIInfo]
|
Dictionary of CLI name -> CLIInfo |
required |
context
|
str
|
Context for logging (e.g., "plugin", "startup", "detection") |
'plugin'
|
Source code in ccproxy/utils/cli_logging.py
log_plugin_summary
¶
Log plugin summary with dynamic CLI information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
summary
|
dict[str, Any]
|
Plugin summary dictionary |
required |
plugin_name
|
str
|
Name of the plugin |
required |
Source code in ccproxy/utils/cli_logging.py
format_cli_info_for_display
¶
Format CLI info for human-readable display.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cli_info
|
CLIInfo
|
CLI information dictionary |
required |
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
Formatted dictionary for display |
Source code in ccproxy/utils/cli_logging.py
create_cli_summary_table
¶
Create a table-ready summary of all CLI information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cli_info_dict
|
dict[str, CLIInfo]
|
Dictionary of CLI name -> CLIInfo |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, str]]
|
List of formatted CLI info for table display |