Skip to content

Commit 137c001

Browse files
committed
Added 'serve' alias
1 parent 289db94 commit 137c001

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
}

rdf-processing-toolkit-cli/src/main/java/org/aksw/sparql_integrate/cli/cmd/CmdSparqlIntegrateMain.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import picocli.CommandLine.Option;
3030
import 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")

0 commit comments

Comments
 (0)