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.
|
broken.
|
||||||
* Support --json and --json-error-messages in more commands
|
* Support --json and --json-error-messages in more commands
|
||||||
(addunused, dead, describe, dropunused, expire, fix, init, log, migrate,
|
(addunused, dead, describe, dropunused, expire, fix, init, log, migrate,
|
||||||
reinit, reinject, rekey, rmurl, semitrust, setpresentkey, trust, unannex,
|
reinit, reinject, rekey, renameremote, rmurl, semitrust, setpresentkey,
|
||||||
undo, untrust, unused)
|
trust, unannex, undo, untrust, unused)
|
||||||
* log: When --raw-date is used, display only seconds from the epoch, as
|
* log: When --raw-date is used, display only seconds from the epoch, as
|
||||||
documented, omitting a trailing "s" that was included in the output
|
documented, omitting a trailing "s" that was included in the output
|
||||||
before.
|
before.
|
||||||
|
|
|
@ -18,7 +18,8 @@ import Types.ProposedAccepted
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
||||||
cmd :: Command
|
cmd :: Command
|
||||||
cmd = command "renameremote" SectionSetup
|
cmd = withAnnexOptions [jsonOptions] $
|
||||||
|
command "renameremote" SectionSetup
|
||||||
"changes name of special remote"
|
"changes name of special remote"
|
||||||
(paramPair paramName paramName)
|
(paramPair paramName paramName)
|
||||||
(withParams seek)
|
(withParams seek)
|
||||||
|
|
|
@ -35,6 +35,7 @@ These commands have been updated to support --json:
|
||||||
* git-annex-init
|
* git-annex-init
|
||||||
* git-annex-reinit
|
* git-annex-reinit
|
||||||
* git-annex-reinject
|
* git-annex-reinject
|
||||||
|
* git-annex-renameremote
|
||||||
|
|
||||||
Provisional list of commands that don't support --json and maybe should:
|
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-enableremote
|
||||||
* git-annex-initremote
|
* git-annex-initremote
|
||||||
* git-annex-merge
|
* git-annex-merge
|
||||||
* git-annex-renameremote
|
|
||||||
* git-annex-upgrade
|
* git-annex-upgrade
|
||||||
|
|
||||||
These commands could support json, but I punted:
|
These commands could support json, but I punted:
|
||||||
|
|
Loading…
Reference in a new issue