Summary
When using --list-device or --list-ep together with --format compact, the --format flag is silently ignored and output is always rendered as text. No warning is shown to the user.
Steps to Reproduce
winml sys --list-device --format compact
winml sys --list-ep --format compact
Actual Output
Rich text table (same as --format text) — compact format is not applied.
Root Cause
src/winml/modelkit/commands/sys.py lines 617–639: the --list-device / --list-ep branches only check use_json = output_format.lower() == "json". The compact case is never handled, so the text renderer is always used as fallback.
Expected Behavior
Either:
- Apply a compact single-line format for
--list-device --format compact, or
- Raise a clear error/warning:
--format compact is not supported with --list-device/--list-ep
Severity
P3
Summary
When using
--list-deviceor--list-eptogether with--format compact, the--formatflag is silently ignored and output is always rendered astext. No warning is shown to the user.Steps to Reproduce
Actual Output
Rich text table (same as
--format text) —compactformat is not applied.Root Cause
src/winml/modelkit/commands/sys.pylines 617–639: the--list-device/--list-epbranches only checkuse_json = output_format.lower() == "json". Thecompactcase is never handled, so the text renderer is always used as fallback.Expected Behavior
Either:
--list-device --format compact, or--format compact is not supported with --list-device/--list-epSeverity
P3