2011-01-26 19:37:16 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2010 Joey Hess <id@joeyh.name>
|
2011-01-26 19:37:16 +00:00
|
|
|
-
|
2019-03-13 19:48:14 +00:00
|
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
2011-01-26 19:37:16 +00:00
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.Semitrust where
|
|
|
|
|
|
|
|
import Command
|
2014-02-20 19:12:35 +00:00
|
|
|
import Types.TrustLevel
|
|
|
|
import Command.Trust (trustCommand)
|
2011-01-26 19:37:16 +00:00
|
|
|
|
2015-07-08 16:33:27 +00:00
|
|
|
cmd :: Command
|
expire, trust et al, dead, describe: Support --json and --json-error-messages
For expire, the normal output is unchanged, but the --json output includes the uuid
in machine parseable form. Which could be very useful for this somewhat obscure
command. That needed ActionItemUUID to be implemented, which seemed like a lot
of work, but then ---
I had been going to skip implementing them for trust, untrust, dead, semitrust,
and describe, but putting the uuid in the json is useful information, it tells
what uuid git-annex picked given the input. It was not hard to support
these once ActionItemUUID was implemented.
Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
2023-05-05 19:29:49 +00:00
|
|
|
cmd = withAnnexOptions [jsonOptions] $
|
|
|
|
command "semitrust" SectionSetup
|
|
|
|
"return repository to default trust level"
|
|
|
|
(paramRepeating paramRepository) (withParams seek)
|
2011-01-26 19:37:16 +00:00
|
|
|
|
2015-07-08 19:08:02 +00:00
|
|
|
seek :: CmdParams -> CommandSeek
|
2014-02-20 19:12:35 +00:00
|
|
|
seek = trustCommand "semitrust" SemiTrusted
|