Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketching out custom completion matchers #1

Closed
wants to merge 310 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
9cb2708
Repl demo: removed now obsolete SubCommands class example
mattirn Apr 26, 2020
b024288
ConsoleEngineImpl: added doc command
mattirn Apr 26, 2020
7f26344
small improvements and bug fixes
mattirn Apr 28, 2020
f152998
Merge pull request #527 from mattirn/groovy-commands
mattirn Apr 28, 2020
d24883c
prnt command: added valueStyle option
mattirn Apr 29, 2020
5cf8f03
prnt command: use StyleResolver to highlight output
mattirn Apr 30, 2020
b7ae0ea
Customizable colors for ls, help and prnt commands, fixes #525
mattirn Apr 30, 2020
ba70973
print map: check on maxrows & SystemRegistryImpl.invoke() fixed NPE
mattirn May 1, 2020
bd35c22
Nano SyntaxHighlighter support also color codes 0-255
mattirn May 1, 2020
4341151
JlineCommandRegistry: improved command completer compilation
mattirn May 1, 2020
8ff80c0
TailTipWidget: highlight command main description if not highlighted
mattirn May 2, 2020
bf7f1ad
Fixed repl demo shell help & improved console command completers
mattirn May 2, 2020
9613ec3
Widgets: executeWidget() restore old binding after runMacro()
mattirn May 3, 2020
496492e
Fixed repl demo shell help, step II
mattirn May 3, 2020
3906925
GraalVM Support #381
mattirn May 3, 2020
c5eca10
GraalVM: fixed java.util.logging problem
mattirn May 4, 2020
0de635b
Support for cygwin recent versions, fix for #520
gnodet Apr 10, 2020
6643730
GraalVM: added catch Error in ttop and removed it from graal demo
mattirn May 5, 2020
40900ef
GraalVM: added maven profile native-image
mattirn May 5, 2020
7333eeb
FileNameCompleter: fixed Windows file name highlighting
mattirn May 5, 2020
b0c272e
Merge branch 'master' of https://github.com/jline/jline3.git
mattirn May 5, 2020
81e38b9
slurp command can now deserialize also string variable context
mattirn May 5, 2020
1a9ee1b
SystemRegistryImpl: added method addCompleter()
mattirn May 7, 2020
4b28a0a
GraalVM: added graal command in build.config
mattirn May 9, 2020
b695c9b
SystemRegistryImpl: fixed NPE
mattirn May 9, 2020
67409e6
prnt command: fixed list printing indention
mattirn May 9, 2020
00a46ad
Repl demo: added jline & groovy docs key bindings to F1 and F2
mattirn May 10, 2020
1248c23
jline-groovy: improved object to string conversion
mattirn May 10, 2020
875efcb
Appveyor: Bump maven to 3.3.9
mattirn May 11, 2020
48663a7
Merge pull request #531 from mattirn/graalvm
mattirn May 11, 2020
3c83e59
Update README.md
mattirn May 11, 2020
80265b4
Fixed javadoc warnings
mattirn May 11, 2020
a6176bc
Add Automatic Module Name, fixes #530
mattirn May 11, 2020
f8aa6e4
Cut down verbosity of debug logging for unsupported signals, fixes 455
mattirn May 12, 2020
7eb0178
Add support for rxvt terminals, fixes #533
mattirn May 15, 2020
3a4abf6
repl demo: fixed init script
mattirn May 15, 2020
013251f
repl demo: improved object highlighting
mattirn May 16, 2020
21cfe92
ConsoleEngineImpl: fixed printing of empty Map
mattirn May 16, 2020
ab29ae2
ConsoleEngineImpl: fixed method isHighlighted()
mattirn May 18, 2020
2ed9941
prnt command: added shortNames option
mattirn May 21, 2020
80b6f58
jline demo: removed code duplication
mattirn May 22, 2020
f671797
Bump groovy to 3.0.4
mattirn May 22, 2020
724e377
Update README.md
mattirn May 22, 2020
0eb2410
Nano SyntaxHighlighter: build highlighter from given nanorc url
mattirn May 23, 2020
482b9c2
Merge branch 'master' of https://github.com/jline/jline3.git
mattirn May 23, 2020
5cd04e7
Console printer: improved the management of boolean options
mattirn May 23, 2020
56dbf56
PipelineCompleter: improved options completion
mattirn May 23, 2020
67b2ba1
Fixed some javadoc typos
mattirn May 24, 2020
6924e3e
Removed key sequence ^\ from nano help, #441
mattirn May 24, 2020
a1551e7
Fix AttributedStringBuilder.append not handling null correctly
Marcono1234 May 24, 2020
1ccf81c
Merge pull request #536 from Marcono1234/AttributedStringBuilder-appe…
mattirn May 24, 2020
880709d
Add changelog for 3.15.0
gnodet May 25, 2020
7d82b59
ConsoleEngineImpl valueHighlighter(): fixed NPE
mattirn May 25, 2020
7baf584
[maven-release-plugin] prepare release jline-parent-3.15.0
gnodet May 26, 2020
cf04e8c
[maven-release-plugin] prepare for next development iteration
gnodet May 26, 2020
10c3f20
Also test with jdk 14
gnodet May 26, 2020
16115a5
Added jline-console module
mattirn May 31, 2020
d31b678
Added simplified example, fixes #537
mattirn May 31, 2020
1aa0bda
Console example: fixed widgets enabling/disabling
mattirn May 31, 2020
b3428b4
ConsoleEngine: added setPrinter() method
mattirn May 31, 2020
4c24ce1
Split Widgets class to org.jline.widget package
mattirn Jun 1, 2020
fcac969
Console example: fixed widgets enabling/disabling, step II
mattirn Jun 1, 2020
f8b7615
prnt command: moved implementation to DefaultPrinter
mattirn Jun 1, 2020
aa84d18
DefaultPrinter can now be used also without ScriptEngine
mattirn Jun 2, 2020
78b4c9f
Merge pull request #540 from mattirn/console-package
mattirn Jun 2, 2020
64d127e
Update README.md
mattirn Jun 2, 2020
04eaadf
Update README.md
mattirn Jun 2, 2020
f13b695
CommandRegistry interface: removed execute() method
mattirn Jun 6, 2020
497f10c
Merge pull request #543 from mattirn/commandRegistry-improvment
mattirn Jun 6, 2020
add2924
prnt command: fix options tab-completion, regression caused by #540
mattirn Jun 6, 2020
de55886
CommandRegistry interface: removed method commandDescription(command),
mattirn Jun 6, 2020
c6a09bd
Improved OptionCompleter long options value completion
mattirn Jun 6, 2020
fe63207
GroovyCommand: improved command tab-completions
mattirn Jun 6, 2020
04aa193
GroovyEngine: added a few tab-completions (import, def, class, ...)
mattirn Jun 8, 2020
feb7690
Autosuggestion choices are not refreshed after tab, fixes #545
mattirn Jun 8, 2020
5ae969e
DefaultPrinter: added two methods to make prnt command options easily
mattirn Jun 8, 2020
8618e47
JlineCommandRegistry: added traces
mattirn Jun 9, 2020
53d00b8
command grab: added --verbose option
mattirn Jun 9, 2020
88cf67d
GroovyEngine: more tab-completions variables, methods and constructors
mattirn Jun 12, 2020
7d61914
GroovyEngine: tab-completion for chained methods
mattirn Jun 15, 2020
56b1f29
LineReaderImpl: added trace
mattirn Jun 16, 2020
ae8ff73
GroovyEngine: tab-completion for method parameters
mattirn Jun 16, 2020
6c81a5b
Display: ArithmeticException: / by zero, fixes #526
mattirn Jun 16, 2020
66fcd73
Builtins title is shown in command help without commands, fixes #546
mattirn Jun 19, 2020
991aae5
GroovyEngine: tab-completion of object methods inside code block
mattirn Jun 19, 2020
272648e
SystemRegistry help customizations, fixes #547
mattirn Jun 20, 2020
fb196ca
GroovyEngine: display method descriptions on status bar
mattirn Jun 20, 2020
96defb8
TailTipWidgets: set LineReader variable errors=0
mattirn Jun 20, 2020
915e942
TailTipWidgets: simplified if statement
mattirn Jun 21, 2020
92b94da
GroovyEngine: tab-completion improvements and fixes
mattirn Jun 21, 2020
3b79730
GroovyEnine tab-completion: Inspector create closures from function def
mattirn Jun 21, 2020
dbf4118
Auto suggestion error when type Asterisk character (*), fixes #548
mattirn Jun 22, 2020
f181773
GroovyEngine: display method descriptions with short type names
mattirn Jun 22, 2020
aafbf36
GroovyEngine: improve inner class tab completions
mattirn Jun 24, 2020
e30759c
GroovyEngine: tab completion requires min. one char to show candidates
mattirn Jun 24, 2020
458ec40
GroovyEngine: added syntax error highlighting
mattirn Jun 26, 2020
8e979e1
Groovy: customizable colors
mattirn Jun 26, 2020
c0f0e79
TailTipWidgets: fixed status bar message compilation
mattirn Jun 29, 2020
99e5efe
Improved PipelineCompleter
mattirn Jun 30, 2020
d2ac4ef
GroovyEngine: fixed chained method tab completion
mattirn Jun 30, 2020
3b0d5d5
rxvt-terminal: NullPointerException with `infocmp` warning, fixes #550
mattirn Jul 6, 2020
b6ffb52
GroovyEngine: added methods markCache() and purgeCache() in Cloner API
mattirn Jul 8, 2020
0175f49
Update README.md
mattirn Jul 8, 2020
ee3f01b
GroovyEngine: add try-catch & small refactoring
mattirn Jul 9, 2020
8042365
GroovyEngine: tab-completion manage lambda expression peculiarities
mattirn Jul 9, 2020
ef81ae7
GroovyEngine: checkSyntax() ignore NullPointerException
mattirn Jul 11, 2020
722f2ef
GroovyEngine Inspector: manage for-each statement
mattirn Jul 11, 2020
25824ac
Autosuggestion choices not refreshed after tab #545, fixed regression…
mattirn Jul 11, 2020
a013760
GroovyEngine: renamed GROOVY_OPTION groovyColors to GROOVY_COLORS
mattirn Jul 14, 2020
0af26c0
NonBlockingPumpReader.read() does not block, fixes #552
gnodet Jul 15, 2020
f867197
Add a unit test for #552
gnodet Jul 15, 2020
9b143f3
Update changelog for 3.16.0 release
gnodet Jul 17, 2020
f5263da
[maven-release-plugin] prepare release jline-parent-3.16.0
gnodet Jul 17, 2020
7e807af
[maven-release-plugin] prepare for next development iteration
gnodet Jul 17, 2020
fdc2fb5
Add support for embedded applications
eatkins Jul 21, 2020
992587a
Example: fix hung on exit with 'status' option
morris821028 Aug 19, 2020
e7eb5e0
Merge pull request #562 from morris821028/master
mattirn Aug 29, 2020
949969e
Solaris automounter: createDirectories throws FileSystemException, fi…
mattirn Aug 29, 2020
2b5e1ae
JLine bundle javadoc is not been generated, fixes #564
mattirn Aug 29, 2020
36f8ecd
JLine app with and without console variables, fixes #565
mattirn Aug 30, 2020
19fedee
jline-groovy: minor fixes & code reformatting
mattirn Aug 30, 2020
6ee5032
jrt classes: manage tab-completions & minor fixes and improvements
mattirn Sep 3, 2020
80d4d3f
widget package: minor fixes & code reformatting
mattirn Sep 5, 2020
9c7acb9
Groovy REPL for statement: improved looping variable type detection
mattirn Sep 5, 2020
1484c4d
Groovy REPL method description: improved detection of method's Class +
mattirn Sep 6, 2020
786dcd8
jline-console: code cleanup
mattirn Sep 6, 2020
bb8b6fe
Groovy REPL: added Groovy options noSyntaxCheck and restrictedCompletion
mattirn Sep 8, 2020
a30080a
DefaultParser: ArrayIndexOutOfBoundsException, fixes #567
mattirn Sep 8, 2020
6158378
Groovy REPL: improved completion of function & closure parameters
mattirn Sep 10, 2020
db15475
Groovy REPL: constructor tab completion failed: NoClassDefFoundError,…
mattirn Sep 10, 2020
2894fa7
Groovy REPL: improved var tab completion, restrictedCompletion=true
mattirn Sep 11, 2020
6551251
Groovy REPL: package tab completion failed:
mattirn Sep 11, 2020
8b1b76c
Groovy REPL completion: improved statement variables type detection
mattirn Sep 14, 2020
0d4fc5d
Groovy REPL: no method completion nor descriptions if known command
mattirn Sep 14, 2020
ff28596
GroovyEngine Inspector: override only Closure vars with function def
mattirn Sep 15, 2020
4d8aa74
Groovy REPL: improved constructor statement completion
mattirn Sep 15, 2020
2d82d47
Auto suggestion error when type "\_" character, fixes #570
mattirn Sep 16, 2020
8f52fb3
JLine script: redirecting command output to temporary variable will
mattirn Sep 18, 2020
f6c1246
Completers and Options: polish up regex patterns
mattirn Sep 20, 2020
f364c00
Autosuggestion history: fixed search command regex pattern, #570
mattirn Sep 20, 2020
1b6a332
Command prompt and line buffer are overlaid with completion candidate…
mattirn Sep 20, 2020
d15889f
Groovy REPL: add options to complete private and protected fields, me…
mattirn Sep 21, 2020
ccf838c
Groovy REPL: add option to complete private and protected classes, #577
mattirn Sep 22, 2020
cda92e3
Groovy REPL: add option to complete groovy identifiers
mattirn Sep 24, 2020
d386045
Groovy REPL: add widget to toggle candidate grouping and fix a bug in…
mattirn Sep 24, 2020
22faa8b
Navigating grouped candidates using arrow keys is broken, fixes #580
mattirn Sep 25, 2020
ce3c930
Groovy REPL: add option to complete groovy metaMethods
mattirn Sep 27, 2020
36d3bc7
Groovy identifiers completion a couple of improvements
mattirn Sep 28, 2020
efd9c70
REPL pipe alias can now be defined using also other aliases
mattirn Sep 28, 2020
6ece81d
nano & less: code clean up
mattirn Sep 29, 2020
f8cec7b
Groovy REPL: improve closure vars type detection, add better test for…
mattirn Sep 29, 2020
546c8ff
Fix for typo in javadoc
barthanssens Sep 29, 2020
280d75c
Groovy REPL: chained metaMethods completion with inline Closure param…
mattirn Sep 30, 2020
25d3adc
Bump Groovy to 3.06
mattirn Sep 30, 2020
e640704
Fixed maven-javadoc-plugin configurations
mattirn Sep 30, 2020
5a4b631
Groovy command grab: fix ArrayIndexOutOfBoundsException
mattirn Oct 3, 2020
10aa390
Groovy REPL: reviewed and fixed all methods completion
mattirn Oct 3, 2020
740985b
Groovy REPL: add widgets and key mappings to toggle Groovy completion…
mattirn Oct 3, 2020
0d861dd
Autosuggestion choices of packages names and directories are refreshe…
mattirn Oct 4, 2020
8053dc1
Add option to do list view of autocomplete suggestions, #582
mattirn Oct 4, 2020
9ec2688
Update README.md
mattirn Oct 6, 2020
64af439
Autosuggestion history: escape also '+' char, fixes #584
mattirn Oct 6, 2020
12dbfa4
improve toString for completer
Oct 4, 2020
43178f5
SystemRegistry: use terminal to flush and close streams in output red…
mattirn Oct 7, 2020
91a9af1
Using SystemRegistry without ConsoleEngine the unknown commands are q…
mattirn Oct 7, 2020
7fdedc3
SystemRegistryImpl: code clean up
mattirn Oct 8, 2020
ad90e03
Jline silently ignore streams(in, out) when using a system Terminal, …
mattirn Oct 8, 2020
af9196e
SystemRegistryImpl: improve command and pipe alias compilation
mattirn Oct 9, 2020
5d4d46b
Tab completion: if auto-menu-list=true and candidates do not fit to d…
mattirn Oct 11, 2020
ea98b90
ConsoleEngineImpl doc command: check that the page exists before laun…
mattirn Oct 22, 2020
299d0e9
Add select-option in Example, #592
mattirn Oct 23, 2020
393d6fb
Bump junit from 4.12 to 4.13.1
dependabot[bot] Oct 24, 2020
5739bab
Remove the getConsoleOutputCP on the AbstractWindowsTerminal
gnodet Oct 26, 2020
c93250d
Remove unused import
gnodet Oct 26, 2020
2702a65
Upgrade to jansi 2.0
gnodet Oct 26, 2020
0809b8d
Add changelog for 3.17 release
gnodet Oct 26, 2020
263f6e3
[maven-release-plugin] prepare release jline-parent-3.17.0
gnodet Oct 26, 2020
cb68c25
[maven-release-plugin] prepare for next development iteration
gnodet Oct 26, 2020
d609de1
Fix console hangup on windows in combination with jansi after typing …
derklaro Oct 28, 2020
9e5728c
Fix unit test
gnodet Oct 28, 2020
15cf389
Add native resource information
gnodet Oct 28, 2020
437e7f4
Upgrade to jansi 2.0.1
gnodet Oct 28, 2020
a495270
Update changelog for 3.17.1
gnodet Oct 28, 2020
c368107
[maven-release-plugin] prepare release jline-parent-3.17.1
gnodet Oct 28, 2020
333cb28
[maven-release-plugin] prepare for next development iteration
gnodet Oct 28, 2020
3f399ac
readLine() ignores any text in the buffer when OEF is reached, fixes …
mattirn Oct 30, 2020
1d7fb07
Windows CMD, redirecting input using JLine with Jansi fails, fixes #597
mattirn Nov 5, 2020
542bfb6
Ignore BRACKETED_PASTE if dumb terminal
mattirn Nov 5, 2020
1c9f16d
JNA/Jansi isWindowsConsole() method return true only if both input an…
mattirn Nov 5, 2020
fe1f271
Windows gitbash: JLine will create dumb terminal if JNA lib is in cla…
mattirn Nov 7, 2020
404565b
Dumb terminal when piping input to console app disallows ANSI formatt…
mattirn Nov 7, 2020
40c4d32
Add completion candidate suffix test, #425
mattirn Nov 7, 2020
ea8d0d3
SystemRegistryImpl: refactoring command output redirection
mattirn Nov 10, 2020
a5686ab
JLine option AUTO_MENU_LIST: candidate list is wrongly positioned, fi…
mattirn Nov 10, 2020
a015a5d
JLine option AUTO_MENU_LIST: bug fix for candidate list start positio…
mattirn Nov 14, 2020
2e6638c
Widgets: added widget name public constants
mattirn Nov 14, 2020
ea6dd89
Autosuggestion choices are not refreshed after tab, fixes #545
mattirn Nov 14, 2020
df99187
Show auto-suggestions when the reader starts reading, fixes #598
mattirn Nov 14, 2020
495b534
ConsoleEngineImpl: exclude pipe name aliases from command completion
mattirn Nov 15, 2020
d92701d
Auto suggestion error when type "\\" character, fixes #602
mattirn Nov 17, 2020
6580789
Keep argument sorting in large argument list when formatting candidat…
Nov 19, 2020
eb3e07c
SystemRegistryImpl: method consoleEngine() is now public
mattirn Nov 20, 2020
d66e734
DefaultParser: fixed default variable regex
mattirn Nov 20, 2020
23034db
SystemRegistryImpl: fixed IndexOutOfBoundsException
mattirn Nov 22, 2020
0ba7e81
edit-and-execute widget: set BRACKETED_PASTE_OFF before editing
mattirn Nov 24, 2020
bb5e85a
Display command is incorrect when use here document, fixes #607
mattirn Nov 25, 2020
ca381ee
Groovy REPL: highlight command and groovy language syntax
mattirn Nov 28, 2020
1a76723
Document how I/O error in LineReader.readLine is reported, fixes #608
mattirn Nov 28, 2020
a47ccc8
Jline completion has logic issues with terminal and prompt widths (St…
mattirn Nov 28, 2020
a228123
Secondary prompt: fix padding when primary prompt has line breaks
mattirn Nov 28, 2020
924d8ff
Builtins Commands.less(): add configPath parameter
mattirn Nov 28, 2020
0e5d510
SystemHighlighter fixed NPE
mattirn Nov 29, 2020
b1a17cb
SystemHighlighter highlight command aliases as commands
mattirn Nov 30, 2020
764a6a6
Less fails with PatternSyntaxException #609
mattirn Dec 1, 2020
30860bc
nano/less ignore quietly PatternSyntaxException when using system ins…
mattirn Dec 5, 2020
172644f
Nano highlighter xml highlighting differs considerable from GNU nano…
mattirn Dec 5, 2020
82ca0f0
Nanorc parser: replace Posix char class regexes with Java regexes
mattirn Dec 5, 2020
54218bc
Nanorc parser: align with GNU nano version 5
mattirn Dec 6, 2020
ec1115d
Failed to build JLine Graal demo: NoClassDefFoundError, fixes #615
mattirn Dec 6, 2020
329768c
Graal demo: fix resolved demo target path
mattirn Dec 7, 2020
538b7fa
Option group-persist: after double tab keep candidates grouped, fixes…
mattirn Dec 8, 2020
d185f72
Add variable menu-list-max and sort candidates in menu-list
mattirn Dec 8, 2020
9d4a53b
Bump Groovy to 3.0.7
mattirn Dec 8, 2020
b77a0a8
Inline completion re-sorts while tabbing when using groups, fixes #618
mattirn Dec 9, 2020
99e130d
Fix some tput limitations
gnodet Dec 5, 2020
b07a7cf
Fix wrong indentation
gnodet Dec 9, 2020
29d72f8
Use style resolver to resolve completion styles, fixes #617
gnodet Dec 10, 2020
c20b133
Remove duplicate semicolon
gnodet Dec 10, 2020
e2b6f97
Support for 24-bit colours, fixes #619
gnodet Dec 10, 2020
8ff1e1d
Support terminal palette, fixes #620
gnodet Dec 10, 2020
717fad8
Allow disabling the jline bundle module
gnodet Dec 10, 2020
f4dd7a8
Move javadoc generation into a separate profile (active by default)
gnodet Dec 10, 2020
a670727
Upgrade plugins to recente releases
gnodet Dec 10, 2020
be78b98
Upgrade to Jansi 2.1.0
gnodet Dec 10, 2020
6168d2b
Avoid javadoc warnings and do not generate javadoc for demos
gnodet Dec 10, 2020
e567eb7
Remove transitive dependency on the jline bundle
gnodet Dec 11, 2020
78734a7
[maven-release-plugin] prepare release jline-parent-3.18.0
gnodet Dec 11, 2020
fd11775
[maven-release-plugin] prepare for next development iteration
gnodet Dec 11, 2020
954309f
Update changelog for 3.18.0
mattirn Dec 11, 2020
34efd44
Builtins: add command colors to view 256-color table
mattirn Dec 12, 2020
b470ba1
ctrl-k, ctrl-u clean line however does nothing with tips from tailtip…
mattirn Dec 12, 2020
b602f92
SystemRegistryImpl: fixed NPE
mattirn Dec 12, 2020
6d87f7b
colors command: reformatting color table
mattirn Dec 12, 2020
eb86dc7
fix JLine variable name value of COMPLETION_STYLE_LIST_BACKGROUND
mattirn Dec 13, 2020
58c0b38
Apply completion background styles to the entire completion table/lis…
mattirn Dec 13, 2020
f0a4adf
Option group-persist: keep also group names on menu-list
mattirn Dec 13, 2020
b53835a
Redirecting input from file to app fails when using CONEMU with Jansi…
mattirn Dec 15, 2020
9e1a530
Command colors: change angle brackets and add option -s to view 16-co…
mattirn Dec 16, 2020
28868af
SystemRegistryImpl: reset captured command output in REPL-loop
mattirn Dec 16, 2020
0d88645
Extension point for completion candidates matching
retronym Mar 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ '1.8', '11' ]
java: [ '1.8', '11', '14' ]
steps:
- uses: actions/checkout@v2

Expand Down
30 changes: 21 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,19 @@ The big bundle is named:

jline-${jline.version}.jar

The dependencies are minimal: you may use JLine without any dependency on *nix systems, but in order to support windows or more advanced usage, you will need to add either [`jansi`](https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.17/jansi-1.17.jar) or [`jna`](https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.5.1/jna-4.5.1.jar) library.
The dependencies are minimal: you may use JLine without any dependency on *nix systems, but in order to support windows or more advanced usage, you will need to add either [`Jansi`](https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.18/jansi-1.18.jar) or [`JNA`](https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar) library.

You can also use finer grained jars:
You can also use fine grained jars:
* `jline-terminal`: the `Terminal` api and implementations
* `jline-terminal-jansi`: terminal implementations leveraging the `jansi` library
* `jline-terminal-jna`: terminal implementations leveraging the `jna` library
* `jline-terminal-jansi`: terminal implementations leveraging the `Jansi` library
* `jline-terminal-jna`: terminal implementations leveraging the `JNA` library
* `jline-reader`: the line reader (including completion, history, etc...)
* `jline-groovy`: jline [ScriptEngine](https://github.com/jline/jline3/blob/master/reader/src/main/java/org/jline/reader/ScriptEngine.java) implementation using Groovy
* `jline-style`: styling api
* `jline-remote-ssh`: helpers for using jline with [Mina SSHD](http://mina.apache.org/sshd-project/)
* `jline-remote-telnet`: helpers for using jline over telnet (including a telnet server implementation)
* `jline-builtins`: several high level tools: `less` pager, `nano` editor, `screen` multiplexer, etc...
* `jline-console`: command registry, object printer and widget implementations
* `jline-groovy`: `ScriptEngine` implementation using Groovy

## Supported platforms

Expand Down Expand Up @@ -100,8 +101,9 @@ All the jars and releases are available from Maven Central, so you'll find every

## Requirements

* Maven 3.3+ (prefer included maven-wrapper)
* Maven 3.3+
* Java 8+
* Graal 19.3+ (native-image)

Check out and build:

Expand All @@ -111,6 +113,12 @@ cd jline3
./build rebuild
```

Build Graal native-image demo:

```sh
./build rebuild -Pnative-image
```

## Results

The following artifacts are build:
Expand All @@ -125,11 +133,12 @@ The fine grained bundles are located at:
terminal-jansi/target/jline-jansi-${jline.version}.jar
terminal-jna/target/jline-jna-${jline.version}.jar
reader/target/jline-reader-${jline.version}.jar
groovy/target/jline-groovy-${jline.version}.jar
style/target/jline-style-${jline.version}.jar
builtins/target/jline-builtins-${jline.version}.jar
remote-telnet/target/jline-remote-telnet-${jline.version}.jar
remote-ssh/target/jline-remote-ssh-${jline.version}.jar
builtins/target/jline-builtins-${jline.version}.jar
console/target/jline-console-${jline.version}.jar
groovy/target/jline-groovy-${jline.version}.jar

Maven has a concept of `SNAPSHOT`. During development, the jline version will always ends with `-SNAPSHOT`, which means that the version is in development and not a release.

Expand All @@ -143,8 +152,11 @@ To run the demo, simply use one of the following commands after having build `JL
# Gogo terminal
./build demo

# groovy REPL
# Groovy REPL
./build repl

# Graal native-image
./build graal
```

## Continuous Integration
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ install:
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
'http://www.us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
- cmd: SET M2_HOME=C:\maven\apache-maven-3.3.9
- cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
Expand Down
4 changes: 4 additions & 0 deletions build.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ function command_demo() {
function command_repl() {
exec demo/jline-repl.sh $*
}

function command_graal() {
exec graal/target/graal $*
}
34 changes: 16 additions & 18 deletions builtins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
<parent>
<groupId>org.jline</groupId>
<artifactId>jline-parent</artifactId>
<version>3.14.1-SNAPSHOT</version>
<version>3.18.1-SNAPSHOT</version>
</parent>

<artifactId>jline-builtins</artifactId>
<name>JLine Builtins</name>

<properties>
<automatic.module.name>org.jline.builtins</automatic.module.name>
</properties>

<dependencies>
<dependency>
<groupId>org.jline</groupId>
Expand All @@ -31,10 +35,6 @@
<groupId>org.jline</groupId>
<artifactId>jline-style</artifactId>
</dependency>
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline-groovy</artifactId>
</dependency>

<dependency>
<groupId>com.googlecode.juniversalchardet</groupId>
Expand Down Expand Up @@ -62,33 +62,31 @@
<execution>
<id>default-compile</id>
<configuration>
<excludes>
<exclude>**/TTop.java</exclude>
<exclude>**/Builtins.java</exclude>
</excludes>
<includes>
<include>**/ConsoleEngineImpl.java</include>
<include>**/TTop.java</include>
</includes>
<compilerArgs>
<arg>-Xlint:all,-options</arg>
<arg>-Werror</arg>
<arg>-profile</arg> <!-- mrn 27/01/2020 -->
<arg>compact3</arg> <!-- after adding jline-groovy also TTop.java started compiling here although exclusion!! -->
</compilerArgs> <!-- changed arg compact1 to compact3 to over come compiling errors -->
</compilerArgs>
</configuration>
</execution>
<execution>
<id>noncompact</id>
<id>compact</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<includes>
<include>**/TTop.java</include>
<include>**/Builtins.java</include>
</includes>
<excludes>
<exclude>**/ConsoleEngineImpl.java</exclude>
<exclude>**/TTop.java</exclude>
</excludes>
<compilerArgs>
<arg>-Xlint:all,-options</arg>
<arg>-Werror</arg>
<arg>-profile</arg>
<arg>compact3</arg>
<arg>compact1</arg>
</compilerArgs>
</configuration>
</execution>
Expand Down
Loading