Commit a9749f2107

a9749f2107c818c6280a802764e8cb325ffbd862

parent: 3fc5fe7f24

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-24 03:44 UTC

control: examples that run as written

Ref #254

Layout: unified · split

internal/control/mr.go +1 −1
@@ -133,7 +133,7 @@ func init() {
133 {"--body", "<b>", "the merge request's new body", ""}, 133 {"--body", "<b>", "the merge request's new body", ""},
134 {"--file", "-", "read the new body from stdin", ""}, 134 {"--file", "-", "read the new body from stdin", ""},
135 {"--format", "md|org", "the body's markup", ""}, 135 {"--format", "md|org", "the body's markup", ""},
136 {"--superseded-by", "<m>|none", "the MR that replaces this closed one, or none to clear", ""}, 136 {"--superseded-by", "<m>|none", "the MR replacing this one, or none to clear", ""},
137 }, 137 },
138 Examples: []string{`mr edit krz/gitbay 431 --title "control: flag help, take two"`}, 138 Examples: []string{`mr edit krz/gitbay 431 --title "control: flag help, take two"`},
139 ReadsStdin: true, Run: runMREdit}) 139 ReadsStdin: true, Run: runMREdit})
internal/control/search.go +2 −2
@@ -18,8 +18,8 @@ func init() {
18 {"--kind", "repo|issue|mr", "only this kind of result, may repeat", ""}, 18 {"--kind", "repo|issue|mr", "only this kind of result, may repeat", ""},
19 }, 19 },
20 Examples: []string{ 20 Examples: []string{
21 "search auth bug", 21 `search "auth bug"`,
22 "search auth bug --kind issue", 22 `search "auth bug" --kind issue`,
23 }, 23 },
24 ReadOnly: true, Run: runSearch}) 24 ReadOnly: true, Run: runSearch})
25} 25}