configremote

New command, currently limited to changing autoenable= setting of a special remote.

It will probably never be used for more than that given the limitations on
it.

Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
Joey Hess 2023-04-18 15:30:49 -04:00
parent 8728695b9c
commit 9155ed1072
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
15 changed files with 184 additions and 21 deletions

View file

@ -109,8 +109,7 @@ commonFieldParsers =
, optionalStringParser sameasUUIDField HiddenField
, optionalStringParser typeField
(FieldDesc "type of special remote")
, trueFalseParser autoEnableField (Just False)
(FieldDesc "automatically enable special remote")
, autoEnableFieldParser
, costParser costField
(FieldDesc "default cost of this special remote")
, yesNoParser exportTreeField (Just False)
@ -121,6 +120,10 @@ commonFieldParsers =
(FieldDesc "directory whose content is preferred")
]
autoEnableFieldParser :: RemoteConfigFieldParser
autoEnableFieldParser = trueFalseParser autoEnableField (Just False)
(FieldDesc "automatically enable special remote")
{- A remote with sameas-uuid set will inherit these values from the config
- of that uuid. These values cannot be overridden in the remote's config. -}
sameasInherits :: S.Set RemoteConfigField