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
want:="invalid repo filter \"AGENTS.md\": expected owner/name or *; if you meant all repos, quote the asterisk: --repo '*'"
602
+
want:="invalid repo filter \"AGENTS.md\": expected owner/name, gh/owner/repo, a repo ULID, or *; if you meant all repos, quote the asterisk: --repo '*'"
595
603
ifgot:=err.Error(); got!=want {
596
604
t.Errorf("error = %q, want %q", got, want)
597
605
}
598
606
}
599
607
608
+
// The CLI --repo help advertises gh/owner/repo, et/proj/repo, and raw ULIDs,
609
+
// and the semantic v4 lookup + code-search resolver both handle them. Validation
610
+
// must accept the same set so it never rejects a filter that would resolve
@@ -306,7 +303,7 @@ branch:<name>, repo:<owner/name>, and repo:* to search all accessible repos.`,
306
303
cmd.Flags().StringVar(&authorFlag, "author", "", "Filter by author name")
307
304
cmd.Flags().StringVar(&dateFlag, "date", "", "Filter by time period (week or month)")
308
305
cmd.Flags().StringVar(&branchFlag, "branch", "", "Filter by branch name")
309
-
cmd.Flags().StringVar(&repoFlag, "repo", "", "Filter by repository (gh/owner/repo, et/proj/repo, owner/repo, ULID, or *)")
306
+
cmd.Flags().StringSliceVar(&repoFlags, "repo", nil, "Filter by repository (gh/owner/repo, et/proj/repo, owner/repo, ULID, or *); repeatable and comma-separated for multiple repos")
310
307
cmd.Flags().BoolVar(&allReposFlag, "all-repos", false, "Search all accessible repos instead of just the current one")
0 commit comments