Skip to content

Commit

Permalink
[#1175] DOC add section on compatible versions to the picocli-shell-j…
Browse files Browse the repository at this point in the history
…line3 README
  • Loading branch information
remkop committed Sep 17, 2020
1 parent a712c5d commit f75d892
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Picocli follows [semantic versioning](http://semver.org/).
* [#1173] DOC: Improve example applications for the user manual and Quick Guide. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request.
* [#1170] TEST: Ensure ANSI is disabled in `ManPageGeneratorTest` regardless of environment. Thanks to [David Walluck](https://github.com/dwalluck) for the pull request.
* [#1166][#1103] TEST: Ensure ANSI is disabled in `TracerTest` regardless of environment. Thanks to [David Walluck](https://github.com/dwalluck) for the pull request.
* [#1175] DOC: section on compatible versions to `picocli-shell-jline3/README.md`. Thanks to [Nick Cross](https://github.com/rnc) for raising this.

## <a name="4.5.2-deprecated"></a> Deprecations
No features were deprecated in this release.
Expand Down
26 changes: 21 additions & 5 deletions picocli-shell-jline3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,31 @@ The picocli user manual is [here](https://picocli.info), and the GitHub project
## Command Completer
`PicocliJLineCompleter` is a small component that generates completion candidates to allow users to
get command line TAB auto-completion for a picocli-based application running in a JLine 3 shell.
It does not use JLine's `TailTipWidgets` terminal status bar and can be used with older versions of JLine.

## PicocliCommands
Completion with description.

`PicocliCommands` is a small component, analogous to JLine's `Builtins`, that takes a `picocli.CommandLine`
object with a picocli-based command hierarchy and creates a JLine `SystemCompleter` for all commands
in the hierarchy to set up command TAB completion in JLine.
object with a picocli-based command hierarchy and creates a JLine `SystemCompleter` for all commands in the hierarchy to set up command TAB completion in JLine.
In addition, it makes a `org.jline.builtins.Widgets.CmdDesc` object available for each command,
which allows a detailed description of the command and its options to be displayed
in the JLine `TailTipWidgets` terminal status bar.
which allows a detailed description of the command and its options to be displayed in the JLine `TailTipWidgets` terminal status bar.
This component requires JLine 3.14.1 or greater.

### PicocliCommands Version Compatibility

The JLine `TailTipWidgets` terminal status bar is still under development, and the JLine API has undergone some backwards incompatible changes.
As a result, applications that use the `PicocliCommands` component for completion must take care to use compatible versions.

The following versions of `jline` and `picocli-shell-jline3` are compatible:

| JLine Version | Picocli Version |
| -------------- | --------------- |
| 3.13.2 - 3.14.0 | 4.1.2 - 4.2.0 |
| 3.14.1 | 4.3.0 - 4.3.2 |
| 3.15.0 - | 4.4.0 - |

See [examples for the older versions](https://github.com/remkop/picocli/wiki/JLine-3-Examples).

## Demo

Expand All @@ -51,7 +67,7 @@ JLine [Wiki](https://github.com/jline/jline3/wiki) and some more [Demos](https:/

## Example

The following example requires JJLine 3.14.1 and Picocli 4.3+.
The following example requires JLine 3.15+ and Picocli 4.4+.

See examples for older versions on the [wiki](https://github.com/remkop/picocli/wiki/JLine-3-Examples).

Expand Down

0 comments on commit f75d892

Please sign in to comment.