Skip to content

feat(cli): --format csv, stdin streams via '-', and telecommand inspection - #7

Open
mysma-9403 wants to merge 1 commit into
mainfrom
feat/cli-csv-and-stream-enhancements
Open

mysma-9403 wants to merge 1 commit into
mainfrom
feat/cli-csv-and-stream-enhancements

feat(cli): --format csv, stdin streams via '-', and telecommand inspe…

8f87263
Select commit
Loading
Failed to load commit list.
Altanix-Bot / Altanix Code Review & Security Gate succeeded Nov 14, 2026 in 54s

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.