improve usage

These commands operate on not only remotes, but any way a repository can
be specified, including "here" etc.

Sponsored-by: Graham Spencer on Patreon
This commit is contained in:
Joey Hess 2022-10-03 13:49:42 -04:00
parent 15f9fcbcb1
commit 70d2ece381
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 6 additions and 4 deletions

View file

@ -60,6 +60,8 @@ paramNumRange :: String
paramNumRange = "NUM|RANGE"
paramRemote :: String
paramRemote = "REMOTE"
paramRemote :: String
paramRemote = "REPOSITORY"
paramField :: String
paramField = "FIELD"
paramGlob :: String

View file

@ -16,7 +16,7 @@ import Git.Types
cmd :: Command
cmd = command "dead" SectionSetup "hide a lost repository or key"
(paramRepeating paramRemote) (seek <$$> optParser)
(paramRepeating paramRepository) (seek <$$> optParser)
data DeadOptions = DeadRemotes [RemoteName] | DeadKeys [Key]

View file

@ -14,7 +14,7 @@ import Command.Trust (trustCommand)
cmd :: Command
cmd = command "semitrust" SectionSetup
"return repository to default trust level"
(paramRepeating paramRemote) (withParams seek)
(paramRepeating paramRepository) (withParams seek)
seek :: CmdParams -> CommandSeek
seek = trustCommand "semitrust" SemiTrusted

View file

@ -18,7 +18,7 @@ import qualified Data.Set as S
cmd :: Command
cmd = command "trust" SectionSetup "trust a repository"
(paramRepeating paramRemote) (withParams seek)
(paramRepeating paramRepository) (withParams seek)
seek :: CmdParams -> CommandSeek
seek = trustCommand "trust" Trusted

View file

@ -13,7 +13,7 @@ import Command.Trust (trustCommand)
cmd :: Command
cmd = command "untrust" SectionSetup "do not trust a repository"
(paramRepeating paramRemote) (withParams seek)
(paramRepeating paramRepository) (withParams seek)
seek :: CmdParams -> CommandSeek
seek = trustCommand "untrust" UnTrusted