refactor(issue,pr): trim help, restating comments and single-use helpers

Cut issue, pr, label, milestone and comment examples to at most three, drop
doc comments that only restate the name, fold the comment and attachment
argument lookups into one closure each, and inline label helpers with one
caller.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:48:00 +02:00
1 parent 4a85bb3d40
commit 2826726557
13 files changed
+57 -147

No files matched your search

-1
View File
@@ -24,7 +24,6 @@ func (a *application) discussionSearchCommand(pulls bool) *cobra.Command {
var updated timeRange
opts.Pulls = pulls
example := fmt.Sprintf(`$ tea search %[1]s "login error"
$ tea search %[1]s --author @me --state all
# Search one repository; its labels and milestones are checked
$ tea search %[1]s crash -R alice/project --label bug --milestone v1.0`, noun)
if pulls {