File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
rdf-processing-toolkit-cli/src/main/java/org/aksw/sparql_integrate/cli/cmd Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ package org .aksw .sparql_integrate .cli .cmd ;
2+
3+ import java .util .ArrayList ;
4+ import java .util .List ;
5+ import java .util .stream .Stream ;
6+
7+ import org .aksw .rdf_processing_toolkit .cli .cmd .CmdRptMain ;
8+
9+ import picocli .CommandLine ;
10+ import picocli .CommandLine .Command ;
11+ import picocli .CommandLine .ParentCommand ;
12+ import picocli .CommandLine .Unmatched ;
13+
14+ @ Command (name = "serve" , description = "Alias for `integrate --server`" )
15+ public class CmdRptServe implements Runnable {
16+ @ ParentCommand CmdRptMain parent ;
17+
18+ @ Unmatched
19+ public List <String > args = new ArrayList <>();
20+
21+ @ Override
22+ public void run () {
23+ new CommandLine (new CmdSparqlIntegrateMain ())
24+ .execute (Stream .concat (Stream .of ("--server" ), args .stream ()).toArray (String []::new ));
25+ }
26+ }
Original file line number Diff line number Diff line change 2929import picocli .CommandLine .Option ;
3030import picocli .CommandLine .Parameters ;
3131
32-
3332@ Command (name = "integrate" ,
3433 versionProvider = VersionProviderRdfProcessingToolkit .class ,
3534 description = "Run sequences of SPARQL queries and stream triples, quads and bindings" )
You can’t perform that action at this time.
0 commit comments