docs(help): trim examples and verbose doc comments in core commands

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:48:00 +02:00
1 parent a0d4e85605
commit fa9cb4f852
7 files changed
+22 -57

No files matched your search

+2 -3
View File
@@ -153,9 +153,8 @@ func availableCommands(cmd *cobra.Command) []commandList {
return append(lists, other, topics)
}
// helpFlags renders the flags of cmd and the global flags that apply to it: --repo, --remote and --cwd
// unless it never selects a repository, --json and --jq when it outputs JSON (--jq alone when it
// filters raw JSON), and --yes when it asks for confirmation. Persistent flags of parent commands, such as --org, count as its own.
// helpFlags renders the flags of cmd, counting parents' persistent flags such as --org as its own, and
// the global flags that apply to it: --repo, --remote and --cwd, --json and --jq, and --yes.
func helpFlags(cmd *cobra.Command) (local, inherited string) {
globals := cmd.Root().PersistentFlags()
var own []*pflag.Flag