upgrade: Support --json and --json-error-messages and --json-progress
Seems unlikely to be very useful, but trivial. Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
parent
c98fb0b637
commit
8d8e044458
4 changed files with 14 additions and 2 deletions
|
@ -40,7 +40,8 @@ git-annex (10.20230408) UNRELEASED; urgency=medium
|
||||||
* Support --json and --json-error-messages in more commands
|
* Support --json and --json-error-messages in more commands
|
||||||
(addunused, dead, describe, dropunused, expire, fix, importfeed, init,
|
(addunused, dead, describe, dropunused, expire, fix, importfeed, init,
|
||||||
log, merge, migrate, reinit, reinject, rekey, renameremote, rmurl,
|
log, merge, migrate, reinit, reinject, rekey, renameremote, rmurl,
|
||||||
semitrust, setpresentkey, trust, unannex, undo, untrust, unused)
|
semitrust, setpresentkey, trust, unannex, undo, untrust, unused,
|
||||||
|
upgrade)
|
||||||
* 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.
|
||||||
|
|
|
@ -20,6 +20,7 @@ cmd = dontCheck
|
||||||
repoExists $
|
repoExists $
|
||||||
-- avoid upgrading repo out from under daemon
|
-- avoid upgrading repo out from under daemon
|
||||||
noDaemonRunning $
|
noDaemonRunning $
|
||||||
|
withAnnexOptions [jsonOptions] $
|
||||||
command "upgrade" SectionMaintenance "upgrade repository"
|
command "upgrade" SectionMaintenance "upgrade repository"
|
||||||
paramNothing (seek <$$> optParser)
|
paramNothing (seek <$$> optParser)
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,16 @@ allow archives to be taken offline for years and later used.
|
||||||
Only do whatever automatic upgrade can be done, don't necessarily
|
Only do whatever automatic upgrade can be done, don't necessarily
|
||||||
upgrade to the latest version. This is used internally by git-annex.
|
upgrade to the latest version. This is used internally by git-annex.
|
||||||
|
|
||||||
|
* `--json`
|
||||||
|
|
||||||
|
Enable JSON output. This is intended to be parsed by programs that use
|
||||||
|
git-annex.
|
||||||
|
|
||||||
|
* `--json-error-messages`
|
||||||
|
|
||||||
|
Messages that would normally be output to standard error are included in
|
||||||
|
the JSON instead.
|
||||||
|
|
||||||
* Also the [[git-annex-common-options]](1) can be used.
|
* Also the [[git-annex-common-options]](1) can be used.
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
|
@ -38,13 +38,13 @@ These commands have been updated to support --json:
|
||||||
* git-annex-renameremote
|
* git-annex-renameremote
|
||||||
* git-annex-importfeed
|
* git-annex-importfeed
|
||||||
* git-annex-merge
|
* git-annex-merge
|
||||||
|
* git-annex-upgrade
|
||||||
|
|
||||||
Provisional list of commands that don't support --json and maybe should:
|
Provisional list of commands that don't support --json and maybe should:
|
||||||
|
|
||||||
* git-annex-configremote
|
* git-annex-configremote
|
||||||
* git-annex-enableremote
|
* git-annex-enableremote
|
||||||
* git-annex-initremote
|
* git-annex-initremote
|
||||||
* 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