Skip to content

Commit

Permalink
Adds new binary
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Dec 2, 2017
1 parent 289984d commit 1b812d3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ install:
- docker pull jjmerelo/test-perl6
- docker images

script: docker run -t -v /home/travis/build/JJ/p6-wikidata-API:/test jjmerelo/test-perl6
script:
- docker run -t -v /home/travis/build/JJ/p6-wikidata-API:/test --entrypoint="/bin/sh" jjmerelo/test-perl6 -c cd /test && zef install .
- docker run -t -v /home/travis/build/JJ/p6-wikidata-API:/test jjmerelo/test-perl6



3 changes: 1 addition & 2 deletions META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"JJ Merelo"
],
"build-depends" : [ ],
"depends" : [ ],
"description" : "A thin wrapper for querying Wikidata using SPARQL",
"name" : "Wikidata::API",
"license" : "GPL-3.0",
Expand All @@ -23,5 +22,5 @@
"Test",
"Test::META"
],
"version" : "0.0.3"
"version" : "0.0.4"
}
9 changes: 9 additions & 0 deletions bin/wdq.p6
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env perl6

use Wikidata::API;
use JSON::Tiny;

sub MAIN( Str $sparql-file!) {
say to-json query-file( $sparql-file );

}

0 comments on commit 1b812d3

Please sign in to comment.