Skip to content

Commit 59bdc1a

Browse files
committed
add procedure tabby.version()
1 parent 7747bb9 commit 59bdc1a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/main/java/tabby/help/Help.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.neo4j.procedure.Name;
77
import org.neo4j.procedure.Procedure;
88
import tabby.result.HelpResult;
9+
import tabby.result.StringResult;
910

1011
import java.util.HashSet;
1112
import java.util.Map;
@@ -53,4 +54,11 @@ public Stream<HelpResult> info(@Name("proc") String name) throws Exception {
5354
return Stream.of( proceduresResults, functionsResults ).flatMap( results -> results.map(
5455
row -> new HelpResult( row, !extended.contains( (String) row.get( "name" ) ) ) ) );
5556
}
57+
58+
@Procedure("tabby.version")
59+
@Description("tabby path finder version")
60+
public Stream<StringResult> version() throws Exception {
61+
StringResult result = new StringResult("version 1.0, 20230130");
62+
return Stream.of(result);
63+
}
5664
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package tabby.result;
2+
3+
/**
4+
* @author mh
5+
* @since 11.04.16
6+
*/
7+
public class StringResult {
8+
public String data;
9+
10+
public StringResult(String data) {
11+
this.data = data;
12+
}
13+
}

0 commit comments

Comments
 (0)