diff options
Diffstat (limited to 'trygvis/eda/cli/eda_rdf.py')
-rw-r--r-- | trygvis/eda/cli/eda_rdf.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/trygvis/eda/cli/eda_rdf.py b/trygvis/eda/cli/eda_rdf.py index 4e80e93..7bf0934 100644 --- a/trygvis/eda/cli/eda_rdf.py +++ b/trygvis/eda/cli/eda_rdf.py @@ -8,18 +8,20 @@ def main(): subparsers = parser.add_subparsers(dest="cmd") + # kicad-* p = subparsers.add_parser("kicad-bom-to-ttl") p.add_argument("-o", "--output", required=False) p.add_argument("-i", "--input", required=False) + # db-* p = subparsers.add_parser("add-to-db") p.add_argument("-d", "--db", required=True) p.add_argument("files", nargs='*') - p = subparsers.add_parser("make-bom") + p = subparsers.add_parser("db-stats") p.add_argument("-d", "--db", required=True) - p.add_argument("--schematic", required=True) + # digikey-* p = subparsers.add_parser("digikey-download-for-schematic") p.add_argument("-d", "--db", required=True) p.add_argument("--schematic", required=True) @@ -29,6 +31,11 @@ def main(): p.add_argument("-s", "--sub-category", required=True) p.add_argument("-o", "--output", required=False) + # Other + p = subparsers.add_parser("make-bom") + p.add_argument("-d", "--db", required=True) + p.add_argument("--schematic", required=True) + args = parser.parse_args() cli.init() @@ -54,10 +61,13 @@ def main(): add_to_db.run(args.files, args.db, args) + elif args.cmd == "db-stats": + from trygvis.eda.cli import db_stats + db_stats.run(args.db) + elif args.cmd == "make-bom": from trygvis.eda.cli import make_bom - - make_bom.run(args.schematic, args.db, args) + make_bom.run(args.schematic, args.db) elif args.cmd == "digikey-download-for-schematic": from trygvis.eda.cli import digikey_download_for_schematic |