git-annex/Assistant
Joey Hess 99cb3e75f1
add LISTCONFIGS to external special remote protocol
Special remote programs that use GETCONFIG/SETCONFIG are recommended
to implement it.

The description is not yet used, but will be useful later when adding a way
to make initremote list all accepted configs.

configParser now takes a RemoteConfig parameter. Normally, that's not
needed, because configParser returns a parter, it does not parse it
itself. But, it's needed to look at externaltype and work out what
external remote program to run for LISTCONFIGS.

Note that, while externalUUID is changed to a Maybe UUID, checkExportSupported
used to use NoUUID. The code that now checks for Nothing used to behave
in some undefined way if the external program made requests that
triggered it.

Also, note that in externalSetup, once it generates external,
it parses the RemoteConfig strictly. That generates a
ParsedRemoteConfig, which is thrown away. The reason it's ok to throw
that away, is that, if the strict parse succeeded, the result must be
the same as the earlier, lenient parse.

initremote of an external special remote now runs the program three
times. First for LISTCONFIGS, then EXPORTSUPPORTED, and again
LISTCONFIGS+INITREMOTE. It would not be hard to eliminate at least
one of those, and it should be possible to only run the program once.
2020-01-17 16:07:17 -04:00
..
Alert update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Install update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pairing update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Threads use filepath-bytestring for annex object manipulations 2019-12-11 15:25:07 -04:00
Types update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
WebApp add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Alert.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
BranchChange.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Changes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Commits.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Common.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
CredPairCache.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
DaemonStatus.hs add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
DeleteRemote.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
Drop.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Fsck.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Gpg.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Install.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
MakeRemote.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
MakeRepo.hs everything is building again 2019-12-05 15:10:23 -04:00
Monad.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
NamedThread.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pairing.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pushes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
RemoteControl.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Repair.hs more RawFilePath 2019-12-18 17:10:28 -04:00
RepoProblem.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Restart.hs make --json-error-messages capture url download errors 2019-11-12 13:52:38 -04:00
ScanRemotes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Ssh.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Sync.hs everything is building again 2019-12-05 15:10:23 -04:00
TransferQueue.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
TransferrerPool.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
TransferSlots.hs everything is building again 2019-12-05 15:10:23 -04:00
Unused.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Upgrade.hs use filepath-bytestring for annex object manipulations 2019-12-11 15:25:07 -04:00
WebApp.hs unified AuthToken type between webapp and tor 2016-11-22 14:18:34 -04:00