git-annex/CmdLine
Joey Hess aec2cf0abe
addon commands
Seems only fair, that, like git runs git-annex, git-annex runs
git-annex-foo.

Implementation relies on O.forwardOptions, so that any options are passed
through to the addon program. Note that this includes options before the
subcommand, eg: git-annex -cx=y foo

Unfortunately, git-annex eats the --help/-h options.
This is because it uses O.hsubparser, which injects that option into each
subcommand. Seems like this should be possible to avoid somehow, to let
commands display their own --help, instead of the dummy one git-annex
displays.

The two step searching mirrors how git works, it makes finding
git-annex-foo fast when "git annex foo" is run, but will also support fuzzy
matching, once findAllAddonCommands gets implemented.

This commit was sponsored by Dr. Land Raider on Patreon.
2021-02-02 16:32:49 -04:00
..
GitAnnex Behavior change: --trust-glacier option no longer overrides trust 2021-01-07 10:37:43 -04:00
GitAnnexShell finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Action.hs avoid interleaving command stages with Concurrency 1 2020-09-16 12:10:45 -04:00
Batch.hs add key to FileInfo 2020-12-14 17:42:02 -04:00
GitAnnex.hs addon commands 2021-02-02 16:32:49 -04:00
GitAnnexShell.hs addon commands 2021-02-02 16:32:49 -04:00
GitRemoteTorAnnex.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
GlobalSetter.hs addon commands 2021-02-02 16:32:49 -04:00
Option.hs rename changeGitConfig to overrideGitConfig and avoid unncessary calls 2020-02-27 01:11:53 -04:00
Seek.hs fix --time-limit 2021-01-04 15:57:11 -04:00
Usage.hs improve synopsis 2020-12-17 12:51:49 -04:00