Page MenuHomeSoftware Heritage

Add a main() to swh.indexer.metadata_dictionary.

Authored by vlorentz on Feb 5 2019, 10:18 AM.



Makes debugging on the command-line easier.

Diff Detail

rDCIDX Object indexer
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz created this revision.Feb 5 2019, 10:18 AM
ardumont accepted this revision.Feb 5 2019, 10:59 AM
ardumont added a subscriber: ardumont.

Note that it'd be interesting to have a centralized cli for that, kinda what's been currently developed on the scheduler.

python3 -m swh.indexer.cli metadata <mapping-name> <file-name>
python3 -m swh.indexer.cli ctags ...
python3 -m swh.indexer.cli language ...

Might be?

This revision is now accepted and ready to land.Feb 5 2019, 10:59 AM

They don't have the same role; the scheduler's CLI is actually useful whereas this one is just for development.

vlorentz updated this revision to Diff 3446.Feb 7 2019, 3:24 PM
  • rebase
This revision was automatically updated to reflect the committed changes.