--json for addcomputed and recompute
Not very useful, but it does work.
This commit is contained in:
parent
2d60ce4803
commit
d74d2d5d91
4 changed files with 12 additions and 2 deletions
|
@ -36,7 +36,7 @@ import qualified Data.Map as M
|
|||
import Data.Time.Clock
|
||||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $ withAnnexOptions [backendOption] $
|
||||
cmd = notBareRepo $ withAnnexOptions [backendOption, jsonOptions] $
|
||||
command "addcomputed" SectionCommon "add computed files to annex"
|
||||
(paramRepeating paramExpression)
|
||||
(seek <$$> optParser)
|
||||
|
|
|
@ -29,7 +29,7 @@ import qualified Data.Map as M
|
|||
import System.PosixCompat.Files (isSymbolicLink)
|
||||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $
|
||||
cmd = notBareRepo $ withAnnexOptions [jsonOptions] $
|
||||
command "recompute" SectionCommon "recompute computed files"
|
||||
paramPaths (seek <$$> optParser)
|
||||
|
||||
|
|
|
@ -86,6 +86,11 @@ the parameters provided to `git-annex addcomputed`.
|
|||
|
||||
Specifies which key-value backend to use.
|
||||
|
||||
* `--json`
|
||||
|
||||
Enable JSON output. This is intended to be parsed by programs that use
|
||||
git-annex. Each line of output is a JSON object.
|
||||
|
||||
* Also the [[git-annex-common-options]](1) can be used.
|
||||
|
||||
# SEE ALSO
|
||||
|
|
|
@ -48,6 +48,11 @@ updated with the new content. The updated file is staged in git.
|
|||
This is the default when the compute remote indicates that it produces
|
||||
reproducible output.
|
||||
|
||||
* `--json`
|
||||
|
||||
Enable JSON output. This is intended to be parsed by programs that use
|
||||
git-annex. Each line of output is a JSON object.
|
||||
|
||||
* matching options
|
||||
|
||||
The [[git-annex-matching-options]](1) can be used to control what
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue