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:
parent
8728695b9c
commit
9155ed1072
15 changed files with 184 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue