Skip to content

cli: Sort loaders list and fix some tests

New tests are failing since the number of available loaders increased. Associated loaders list gets now wrapped in cli help output so we need to take this into account in tests implementation.

See commands output below:

13:04 $ swh loader list --help
Usage: swh loader list [OPTIONS] [[all|archive|cran|debian|deposit|git|mercuri
                       al|nixguix|npm|pypi|svn]]

  List supported loaders and optionally their arguments

Options:
  -h, --help  Show this message and exit.
15:53 $ swh loader run --help
Usage: swh loader run [OPTIONS] [archive|cran|debian|deposit|git|mercurial|nix
                      guix|npm|pypi|svn] URL [OPTIONS]...

  Ingest with loader <type> the origin located at <url>

Options:
  -h, --help  Show this message and exit.

Migrated from D2995 (view on Phabricator)

Merge request reports