renameremote: Support --json and --json-error-messages
Seems unlikely to be useful, but it works so Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
parent
a5d0c85ae1
commit
a71c831949
3 changed files with 8 additions and 7 deletions
|
@ -39,8 +39,8 @@ git-annex (10.20230408) UNRELEASED; urgency=medium
|
|||
broken.
|
||||
* Support --json and --json-error-messages in more commands
|
||||
(addunused, dead, describe, dropunused, expire, fix, init, log, migrate,
|
||||
reinit, reinject, rekey, rmurl, semitrust, setpresentkey, trust, unannex,
|
||||
undo, untrust, unused)
|
||||
reinit, reinject, rekey, renameremote, rmurl, semitrust, setpresentkey,
|
||||
trust, unannex, undo, untrust, unused)
|
||||
* log: When --raw-date is used, display only seconds from the epoch, as
|
||||
documented, omitting a trailing "s" that was included in the output
|
||||
before.
|
||||
|
|
|
@ -18,10 +18,11 @@ import Types.ProposedAccepted
|
|||
import qualified Data.Map as M
|
||||
|
||||
cmd :: Command
|
||||
cmd = command "renameremote" SectionSetup
|
||||
"changes name of special remote"
|
||||
(paramPair paramName paramName)
|
||||
(withParams seek)
|
||||
cmd = withAnnexOptions [jsonOptions] $
|
||||
command "renameremote" SectionSetup
|
||||
"changes name of special remote"
|
||||
(paramPair paramName paramName)
|
||||
(withParams seek)
|
||||
|
||||
seek :: CmdParams -> CommandSeek
|
||||
seek = withWords (commandAction . start)
|
||||
|
|
|
@ -35,6 +35,7 @@ These commands have been updated to support --json:
|
|||
* git-annex-init
|
||||
* git-annex-reinit
|
||||
* git-annex-reinject
|
||||
* git-annex-renameremote
|
||||
|
||||
Provisional list of commands that don't support --json and maybe should:
|
||||
|
||||
|
@ -44,7 +45,6 @@ Provisional list of commands that don't support --json and maybe should:
|
|||
* git-annex-enableremote
|
||||
* git-annex-initremote
|
||||
* git-annex-merge
|
||||
* git-annex-renameremote
|
||||
* git-annex-upgrade
|
||||
|
||||
These commands could support json, but I punted:
|
||||
|
|
Loading…
Reference in a new issue