Tab completion of many commands like info and trust now includes remotes
Especially useful with proxied remotes and clusters, where the user may not be entirely familiar with the name and can learn by tab completion.
This commit is contained in:
parent
3d646703ee
commit
0033e6c0a6
13 changed files with 33 additions and 14 deletions
|
@ -40,6 +40,10 @@ command name section desc paramdesc mkparser =
|
|||
withParams :: (CmdParams -> v) -> CmdParamsDesc -> Parser v
|
||||
withParams mkseek paramdesc = mkseek <$> cmdParams paramdesc
|
||||
|
||||
withParams' :: (CmdParams -> v) -> Mod ArgumentFields String -> String -> Parser v
|
||||
withParams' mkseek completers paramdesc = mkseek
|
||||
<$> cmdParamsWithCompleter paramdesc completers
|
||||
|
||||
{- Uses the supplied option parser, which yields a deferred parse,
|
||||
- and calls finishParse on the result before passing it to the
|
||||
- CommandSeek constructor. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue