Commit 2d34eca
[cli] add -o json/yaml to gateway routes and fix parent display format
Refactor the manually-implemented routes command to match the generic
ResourceCommand pattern: add -o json/yaml output, replace duplicated
stdin logic with ReadInputData, scope flag vars locally in
buildRoutesCmd(), and format the PARENTS column as kind://name
(e.g. gateway://my-gw) consistent with domain target display.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bce8bf8 commit 2d34eca
3 files changed
+246
-242
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
0 commit comments