You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,7 @@ Each subcommand group lives in `internal/cmd/<group>/`:
94
94
All leaf commands are built using one of five generic base types. Always prefer these over raw `cobra.Command`.
95
95
96
96
#### `base.ListCmd[T]`
97
-
For listing resources. No args, no flags needed (extend via `BaseCobraCommand` if flags are required).
98
-
99
-
Prefer `OutputTable` over `PrintText` for table output. When `OutputTable` is set, the base automatically registers `--no-headers` and handles header suppression. `PrintText` is used as a fallback when `OutputTable` is not set.
97
+
For listing resources. `OutputTable` must be set. The base automatically registers `--no-headers` and handles header suppression. By default the command takes no positional args; set `Args` to accept them.
0 commit comments