From de8665b0b05db10c3257f9c645a09638a4732256 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 28 Dec 2016 00:37:54 +0100 Subject: o Improving CLI output and setup. o Adding 'init' command similar to git's init command. Only configurable item is the database to query. Removing the -d/--db argument to all commands as it's read from the configuration instead. o Adding support for querying a remove SPARQL endpoint. --- trygvis/eda/cli/db_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trygvis/eda/cli/db_stats.py') diff --git a/trygvis/eda/cli/db_stats.py b/trygvis/eda/cli/db_stats.py index 5ee99ac..5261ed1 100755 --- a/trygvis/eda/cli/db_stats.py +++ b/trygvis/eda/cli/db_stats.py @@ -1,7 +1,7 @@ from trygvis.eda import cli -def run(db_path): +def run(): def db_stats(g): res = cli.sparql(g, """ SELECT ?schematic ?label @@ -37,4 +37,4 @@ ORDER BY ?dk_part_number for row in res: cli.info(" %-30s: %s" % (row.dk_part_number, row.label)) - cli.with_database(db_path, db_stats) + cli.with_database(db_stats) -- cgit v1.2.3