Commit aab812b
fix: validate --format flag and use cobra output writer
Address Copilot review feedback: reject unsupported --format values
before making the network request instead of silently falling back to
the default output, and print JSON via cmd.Println so the output
respects the command's configured writer.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Rahul Vishwakarma <rahulvs2809@gmail.com>1 parent 88c5569 commit aab812b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments