Page MenuHomeSoftware Heritage

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

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

Details

Summary

Makes debugging on the command-line easier.

Diff Detail

Repository
rDCIDX Metadata indexer
Branch
metadata-dict-main
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4074
Build 5363: tox-on-jenkinsJenkins
Build 5362: arc lint + arc unit

Event Timeline

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.

This revision was automatically updated to reflect the committed changes.