Skip to content

Commit

Permalink
Upgrade to gogo 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jun 20, 2018
1 parent 12b992f commit 0beae63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 314 deletions.
20 changes: 9 additions & 11 deletions demo/etc/gosh_profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ status = {
p1 = $1
if { "on" equals $p1 } {
__status_on
} {
if { "off" equals $p1 } {
($.terminal status) update null
} {
echo "Error: use 'status on' or 'status off'."
}
} elif { "off" equals $p1 } {
($.terminal status) update null
} else {
echo "Error: use 'status on' or 'status off'."
}
}

Expand Down Expand Up @@ -71,7 +69,7 @@ __process_stream = {
# with gogo-jline-1.0.4, should not be needed at all, see FELIX-5463 and FELIX-5462
(($.processor class) getMethod "addConverter" (__load_class_from $.processor "org.apache.felix.service.command.Converter")) invoke $.processor (new org.jline.demo.FunctionConverter)

if { $.terminal } {
if { $.terminal } then {
try {
#
# TTop command
Expand All @@ -88,9 +86,9 @@ if { $.terminal } {
complete -c gogo:ttop -s t -l stats --description "Comma separated list of stats to display"

max_colors = ($.terminal getNumericCapability "max_colors")
if { %(max_colors >= 256) } {
if { %(max_colors >= 256) } then {
HIGHLIGHTER_COLORS = "rs=35:st=32:nu=32:co=32:va=36:vn=36:fu=1;38;5;69:bf=1;38;5;197:re=90"
} {
} else {
HIGHLIGHTER_COLORS = "rs=35:st=32:nu=32:co=32:va=36:vn=36:fu=94:bf=91:re=90"
}

Expand Down Expand Up @@ -164,8 +162,8 @@ if { $.terminal } {
complete -c remote:telnetd -s p -l port --description "Listening IP port" -n '__option_not_present -p --port'
complete -c remote:telnetd -a '[start stop status]'

} {
if { not { (($exception cause) toString) startsWith "java.lang.NoClassDefFoundError: org/apache/sshd/" } } {
} catch {
if { not { (($exception cause) toString) startsWith "java.lang.NoClassDefFoundError: org/apache/sshd/" } } then {
$exception printStackTrace
}
}
Expand Down
205 changes: 0 additions & 205 deletions demo/src/main/java/org/apache/felix/gogo/jline/ParsedLineImpl.java

This file was deleted.

96 changes: 0 additions & 96 deletions demo/src/main/java/org/apache/felix/gogo/jline/Parser.java

This file was deleted.

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
<sshd.version>1.4.0</sshd.version>
<easymock.version>3.3.1</easymock.version>
<junit.version>4.12</junit.version>
<gogo.runtime.version>1.0.8</gogo.runtime.version>
<gogo.jline.version>1.0.8</gogo.jline.version>
<gogo.runtime.version>1.1.0</gogo.runtime.version>
<gogo.jline.version>1.1.0</gogo.jline.version>
<slf4j.version>1.7.21</slf4j.version>
<findbugs.version>3.0.2</findbugs.version>

Expand Down

0 comments on commit 0beae63

Please sign in to comment.