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
args -> wrongArgsLength "exactly one argument" args
2697
+
[]-> wrongArgsLength "at least one argument"[]
2698
+
[rawArg] ->do
2699
+
let arg = handleArg rawArg
2700
+
case arg of
2701
+
(_, Left errMsg) ->Left errMsg
2702
+
(argString, Right name) ->pure$Input.NamesI isGlobal [(argString, Right name)]
2703
+
rawArgs ->do
2704
+
let args = handleArg <$> rawArgs
2705
+
pure$Input.NamesI isGlobal args
2695
2706
where
2696
-
description
2697
-
| isGlobal ="Iteratively search across all projects and branches for names matching `foo`. Note that this is expected to be quite slow and is primarily for debugging issues with your codebase."
2698
-
|otherwise="List all known names for `foo` in the current branch."
2707
+
isGlobalPreamble ="Iteratively search names or hashes across all projects and branches."
2708
+
isNotGlobalPreamble ="Search names or hashes in the current branch."
[ if isGlobal then isGlobalPreamble else isNotGlobalPreamble,
2713
+
P.wrap $ makeExample (names isGlobal) ["foo"] <>"List all known names for `foo`.",
2714
+
P.wrap $ makeExample (names isGlobal) ["foo", "#bar"] <>"List all known names for the name `foo` and for the hash `#bar`.",
2715
+
P.wrap $ makeExample (names isGlobal) []<>"without arguments invokes a search to select names/hashes to list, which requires that `fzf` can be found within your PATH."
0 commit comments