Page MenuHomeSoftware Heritage

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

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

Details

Summary

Makes debugging on the command-line easier.

Diff Detail

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

Event Timeline

vlorentz created this revision.Tue, Feb 5, 10:18 AM
ardumont accepted this revision.Tue, Feb 5, 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.Tue, Feb 5, 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.Thu, Feb 7, 3:24 PM
  • rebase
This revision was automatically updated to reflect the committed changes.