Page MenuHomeSoftware Heritage

loader.cli: Add 2 subcommands, one to load, one to introspect
ClosedPublic

Authored by ardumont on Dec 11 2019, 4:31 PM.

Details

Summary

2 subcommands:

  • one to load: swh loader run <type> <url> <options>
  • one to list supported loader or instrospect the loader's extra arguments (most of the time url should be enough but not always) swh loader list swh loader list <type>

Related to T2134

Test Plan

tox

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 9684
Build 14275: tox-on-jenkinsJenkins
Build 14274: arc lint + arc unit

Event Timeline

lgtm

swh/loader/cli.py
88

import at the top of the file please

swh/loader/cli.py
88

mmmph, yeah!

Move import statement at the top of the file

  • loaders: Add missing class loader docstrings
  • test_cli: Test the cli list's standard use
This revision is now accepted and ready to land.Dec 12 2019, 11:17 AM