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
|
@ -22,7 +22,7 @@ cmd = withAnnexOptions [jsonOptions] $
|
|||
data DeadOptions = DeadRemotes [RemoteName] | DeadKeys [Key]
|
||||
|
||||
optParser :: CmdParamsDesc -> Parser DeadOptions
|
||||
optParser desc = (DeadRemotes <$> cmdParams desc)
|
||||
optParser desc = (DeadRemotes <$> cmdParamsWithCompleter desc completeRemotes)
|
||||
<|> (DeadKeys <$> many (option (str >>= parseKey)
|
||||
( long "key" <> metavar paramKey
|
||||
<> help "keys whose content has been irretrievably lost"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue