Skip to content

Commit 8edba10

Browse files
committed
tools: cleanup cmd/tools/vquest.v, print the guidance/help text, even when -p is used
1 parent 98a0a45 commit 8edba10

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎cmd/tools/vquest.v‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ fn run_confirm(cmd cli.Command) ! {
8989
page := (rand.intn(max_pages) or { 0 }) + 1
9090
eprintln(term.colorize(term.gray, 'Found: ${total} still unconfirmed issues. Fetching issue from page: ${page} ...'))
9191
issue := fetch_issue_from_page(confirm_search_query, page)!
92+
println(term.colorize(term.green, 'Help us by confirming and triaging this issue:'))
93+
println(issue.html_url)
9294
if print_only {
93-
println(issue.html_url)
9495
return
9596
}
9697
os.open_uri(issue.html_url)!
97-
println(term.colorize(term.green, 'Help us by confirming and triaging this issue:'))
98-
println(issue.html_url)
9998
}
10099

101100
fn run_fix(cmd cli.Command) ! {
@@ -108,13 +107,12 @@ fn run_fix(cmd cli.Command) ! {
108107
page := (rand.intn(max_pages) or { 0 }) + 1
109108
eprintln(term.colorize(term.gray, 'Found: ${total} open issues. Fetching issue from page: ${page} ...'))
110109
issue := fetch_issue_from_page(fix_search_query, page)!
110+
println(term.colorize(term.green, 'Help us by fixing or confirming this issue:'))
111+
println(issue.html_url)
111112
if print_only {
112-
println(issue.html_url)
113113
return
114114
}
115115
os.open_uri(issue.html_url)!
116-
println(term.colorize(term.green, 'Help us by fixing or confirming this issue:'))
117-
println(issue.html_url)
118116
}
119117

120118
fn run_document(cmd cli.Command) ! {

0 commit comments

Comments
 (0)