Skip to content

Commit 465e1e8

Browse files
committed
Move jline functions to gshell-jline module
1 parent a3ff0ba commit 465e1e8

File tree

7 files changed

+66
-6
lines changed

7 files changed

+66
-6
lines changed

gshell-assembly/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
<artifactId>gshell-standard</artifactId>
5757
</dependency>
5858

59+
<dependency>
60+
<groupId>com.planet57.gshell.commands</groupId>
61+
<artifactId>gshell-jline</artifactId>
62+
</dependency>
63+
5964
<dependency>
6065
<groupId>com.planet57.gshell.commands</groupId>
6166
<artifactId>gshell-file</artifactId>

gshell-commands/gshell-jline/pom.xml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2009-present the original author or authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21+
22+
<modelVersion>4.0.0</modelVersion>
23+
24+
<parent>
25+
<groupId>com.planet57.gshell.commands</groupId>
26+
<artifactId>gshell-commands</artifactId>
27+
<version>3.0.0-SNAPSHOT</version>
28+
</parent>
29+
30+
<artifactId>gshell-jline</artifactId>
31+
<name>${project.groupId}:${project.artifactId}</name>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.planet57.gshell</groupId>
36+
<artifactId>gshell-core</artifactId>
37+
<scope>provided</scope>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>com.planet57.gshell</groupId>
42+
<artifactId>gshell-testharness</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
</dependencies>
46+
47+
</project>
48+

gshell-core/src/main/java/com/planet57/gshell/functions/internal/BuiltinFunctions.java gshell-commands/gshell-jline/src/main/java/com/planet57/gshell/jline/BuiltinFunctions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.planet57.gshell.functions.internal;
16+
package com.planet57.gshell.jline;
1717

1818
import com.planet57.gshell.functions.Functions;
1919
import org.apache.felix.gogo.jline.Builtin;
@@ -22,7 +22,7 @@
2222
import javax.inject.Singleton;
2323

2424
/**
25-
* ???
25+
* Jline built-in functions.
2626
*
2727
* @since 3.0
2828
*/

gshell-core/src/main/java/com/planet57/gshell/functions/internal/PosixFunctions.java gshell-commands/gshell-jline/src/main/java/com/planet57/gshell/jline/PosixFunctions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.planet57.gshell.functions.internal;
16+
package com.planet57.gshell.jline;
1717

1818
import com.planet57.gshell.functions.Functions;
1919
import org.apache.felix.gogo.jline.Posix;
@@ -26,7 +26,7 @@
2626
import static com.google.common.base.Preconditions.checkNotNull;
2727

2828
/**
29-
* ???
29+
* Jline built-in posix.
3030
*
3131
* @since 3.0
3232
*/

gshell-core/src/main/java/com/planet57/gshell/functions/internal/ProceduralFunctions.java gshell-commands/gshell-jline/src/main/java/com/planet57/gshell/jline/ProceduralFunctions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.planet57.gshell.functions.internal;
16+
package com.planet57.gshell.jline;
1717

1818
import com.planet57.gshell.functions.Functions;
1919
import org.apache.felix.gogo.jline.Procedural;
@@ -22,7 +22,7 @@
2222
import javax.inject.Singleton;
2323

2424
/**
25-
* ???
25+
* Jline procedural functions.
2626
*
2727
* @since 3.0
2828
*/

gshell-commands/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<modules>
3636
<module>gshell-artifact</module>
3737
<module>gshell-file</module>
38+
<module>gshell-jline</module>
3839
<module>gshell-logging</module>
3940
<module>gshell-plugin</module>
4041
<module>gshell-pref</module>

pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@
462462
<version>3.0.0-SNAPSHOT</version>
463463
</dependency>
464464

465+
<dependency>
466+
<groupId>com.planet57.gshell.commands</groupId>
467+
<artifactId>gshell-jline</artifactId>
468+
<version>3.0.0-SNAPSHOT</version>
469+
</dependency>
470+
465471
<dependency>
466472
<groupId>com.planet57.gshell</groupId>
467473
<artifactId>gshell-personality</artifactId>

0 commit comments

Comments
 (0)