Repository navigation
feat(cli): --format csv, stdin streams via '-', and telecommand inspection - #7
mysma-9403 wants to merge 1 commit into
Audit Passed - Code Approved
This PR enhances the xtce-cli tool by adding support for reading XTCE definitions and packet streams from standard input ('-'). It also introduces a CSV output format for decoded telemetry and adds support for displaying telecommand metadata in the 'info' command.
Co wprowadza (Key Additions):
• Added CSV output format to 'xtce decode' with support for raw/engineering values.
• Added support for reading XTCE definitions and binary packet streams from stdin.
• Implemented telecommand metadata reporting in 'xtce info'.
• Added a '--no-summary' flag to suppress timing and packet count output in 'xtce decode'.
Co zmienia (Modifications):
• Refactored CLI command execution into separate functions (run_info, run_codegen, run_bench) for better maintainability.
• Updated 'xtce decode' to handle errors and non-table output formats by printing to stderr instead of stdout.
• Improved 'xtce info' to display telecommand structures including arguments and bit-widths.
• Standardized database loading logic to support both file paths and stdin.