Commit Graph

863 Commits

Author SHA1 Message Date
github-actions[bot]
2e04f3893e Next development version 2024-01-22 08:59:23 +00:00
Janne Valkealahti
4a3af05b60 Update spring-boot 3.1.8
- Fixes #977
2024-01-19 07:12:12 +00:00
Stephen Lawrence
059c2d0144 Clarifying the confusing note 2024-01-17 07:55:40 +00:00
Janne Valkealahti
134af2dbd2 Fix alias handling with @Command annotation
- Revisit how alias commands are added using
  @Command annotation when using if/or on class
  and/or method level.
- With this change alias handling is more logical
  and there's better tests and docs.
- Backport #945
- Fixes #973
2024-01-13 12:35:35 +00:00
Janne Valkealahti
be6a25b221 Add custom local antora playbook 2024-01-13 12:13:29 +00:00
Janne Valkealahti
12f75d030b Add deploy docs workflow 2024-01-13 08:58:39 +00:00
Janne Valkealahti
fc4a731f57 Restore cursor using normal capability
- Looks like some infocmp capabilities for making cursor visible
  using cvvis doesn't always work. So change to use cnorm instead.
- Terminal instruction of making cursor very visible with cvvis
  doesn't mean cursor should be visible, afaik, so i.e. screen
  or tmux didn't work.
- Backport #970
- Fixes #972
2024-01-12 15:44:58 +00:00
Janne Valkealahti
814ed4958f Migrate docs to antora
- This is basically copy from main branch minus all
  terminal ui things.
- Relates #971
2024-01-12 14:02:10 +00:00
Janne Valkealahti
09d4bfed51 Split jline dependencies
- From jline to console, reader, style and terminal.
- Backport #968
- Fixes #969
2024-01-11 10:25:09 +00:00
Janne Valkealahti
f0a79259fb Update jline 3.25.0
- Backport #966
- Fixes #967
2024-01-10 14:53:07 +00:00
github-actions[bot]
0edbd2d134 Next development version 2024-01-03 09:14:36 +00:00
Janne Valkealahti
d4080e8f22 Switch to ApplicationConversionService
- ApplicationConversionService extends FormattingConversionService
  and defines some additional default converters like
  StringToFileConverter which makes `script` command work
  under native with given file type option.
- Backport #960
- Fixes #964
2024-01-02 10:17:43 +00:00
Janne Valkealahti
7be4920a47 Fix exception mapping with exit codes
- Migitates changed behaviour in boot how exceptions are
  handled thus caused trouble with exit code mappings
  on a shell side.
- Backport #961
- Fixes #962
2023-12-24 08:50:54 +00:00
Janne Valkealahti
2f186e3144 Restore old sorting behaviour
- In #946 we added new ways to add items to single selector while still
  keeping Map<String, String>. Order to keep old sorting behaviour
  we try to pass incoming map via new HashMap as that was a way it
  worked. This should limit risks for breaking things in a patch release.
2023-12-23 10:03:56 +00:00
Janne Valkealahti
da2d7769ea Upgrade spring-boot 3.1.7
- Fixes #951
2023-12-22 08:33:11 +00:00
Janne Valkealahti
7cf73bc0fc Add SelectItem to flow single selector api
- This change makes single/multi same on an api level
  where single selector used key/value map and multi
  selector used list of SelectItem's.
- We still keep use of map on a single select but those
  essentially go directly via SelectItem's.
- Backport #946
- Fixes #957
2023-12-18 10:04:45 +00:00
Janne Valkealahti
7520799973 Add editorconfig 2023-12-15 13:16:30 +00:00
Janne Valkealahti
98b8eb356d Add spring-configuration-metadata
- Adding boot's annotation processor to spring-shell-autoconfigure
  and spring-shell-test-autoconfigure
- Backport #948
- Fixes #950
2023-12-15 09:50:49 +00:00
github-actions[bot]
68eb1a61fc Next development version 2023-11-28 08:33:58 +00:00
Janne Valkealahti
b024b3db3f Fix wrong parser message
- Parser error message gave wrong lower level arity value
  if option didn't have enough arguments
- Backport #930
- Fixes #939
2023-11-27 14:31:51 +00:00
Janne Valkealahti
00529b6fb2 Upgrade spring-boot 3.1.6
- Fixes #933
2023-11-23 13:24:48 +00:00
Janne Valkealahti
d475b963e7 Basic zsh completion support
- This adds basic zsh support similarly to
  existing bash completion
- New command "completion zsh"
- Fix internal recursive command completion model for
  cases with deep nested commands
- Backport #927
- Fixes #929
2023-11-16 15:48:02 +00:00
github-actions[bot]
e890d35bf6 Next development version 2023-11-08 09:46:31 +00:00
Janne Valkealahti
5df2d35e9b Pin python 3.11 in e2e tests
- Relates #909
2023-11-07 12:47:57 +00:00
icodening
3e80d8d767 Bugfix: Tab-completion fails
- Backport #902
- Fixes #920
2023-11-06 18:09:13 +00:00
Janne Valkealahti
46b38a0a85 Upgrade jline 3.24.1
- Disable jni terminal provider in test ShellAutoConfiguration
  like it's done for jna/jansi
- Default TerminalBuilder system outpu to SysOut to restore
  writing to stdout instead of stderr when redirect exists
- Backport #891
- Backport #901
- Fixes #913
- Fixes #910
2023-11-03 17:05:31 +00:00
Eddie
db212a3831 Update StringTemplate version in gradle.properties
Newer version contains bugfixes
Backport #886
Fixes #888
2023-10-19 16:45:50 +01:00
Janne Valkealahti
2952c42a51 Upgrade spring-boot 3.1.5
- Fixes #894
2023-10-19 14:34:36 +01:00
github-actions[bot]
e08e087a0e Next development version 2023-10-03 12:25:47 +00:00
Janne Valkealahti
d2df1d611e Fix wrong groupId in docs
- Backport #852
- Fixes #880
2023-10-03 11:18:27 +01:00
Janne Valkealahti
b40e9f6339 Upgrade spring-boot 3.1.4
- Fixes #870
2023-09-21 12:53:32 +01:00
Janne Valkealahti
5739df406a Context close docs
- Backport #863
- Relates #866
2023-09-21 07:48:51 +01:00
Janne Valkealahti
b9be826c9c Optionally close context after command logic
- spring.shell.context.close=true adds ApplicationListerner
  which attempts to close context with ApplicationReadyEvent.
- Backport #863
- Relates #866
2023-09-21 07:34:08 +01:00
Janne Valkealahti
17b732142d Upgrade spring-boot 3.1.3
- Fixes #859
2023-08-25 09:31:03 +03:00
github-actions[bot]
234bde5415 Next development version 2023-07-26 12:45:55 +00:00
Janne Valkealahti
9801eab258 Update nexus timeouts 2023-07-26 08:47:36 +01:00
MJ Gallego
649cb68c14 Completion proposal support for complete jline parameter
- to allow completing single argument with multiple tab clicks,
  for example file paths.
- Backport #512
- Fixes #836
2023-07-25 09:58:22 +01:00
Janne Valkealahti
1caeacfb9c Upgrade spring-boot 3.1.2
- Fixes #819
2023-07-20 14:48:57 +01:00
Janne Valkealahti
9531504261 Polish error messages
- Polish mandatory option message by using
  same format as in 3.0.x. (old parser)
- Remove prefixed code/position parts from
  all messages coming from a parser. (new parser)
- Backport #815
- Fixes #816
2023-07-19 08:12:54 +01:00
Janne Valkealahti
d86bfed773 Add primary command docs
- Backport #755
- Relates #799
2023-07-07 14:05:46 +01:00
Janne Valkealahti
051f7da5dc Add primary command feature
- NonInteractiveShellRunner can now shortcircuit into primary command
  just running it and passing args.
- Add hooks into autoconfig so that this is easy to configure.
- Backport #755
- Relates #799
2023-07-07 14:05:05 +01:00
github-actions[bot]
f388a30716 Next development version 2023-06-27 07:26:26 +00:00
Janne Valkealahti
3cfe03b25d Add run-name to release workflow 2023-06-27 07:42:40 +01:00
Janne Valkealahti
8b6e040f5e Add timeout for native build 2023-06-26 13:09:12 +01:00
Janne Valkealahti
4376b1dece Document CommandNotFoundMessageProvider
- Relates #793
2023-06-23 06:31:44 +01:00
Janne Valkealahti
4aecebd542 Add run-name for e2e 2023-06-23 05:45:02 +01:00
Janne Valkealahti
d36b9d83fc Upgrade spring-boot 3.1.1
- Fixes #786
2023-06-22 16:41:23 +01:00
Janne Valkealahti
ff60039c85 Fix alias usage with Command annotation
- Fix alias command extraction from existing @Command
  annotations so that we actually get multiple aliases
  defined if more than one defined on a method level.
- Fix rendering issue in a help stg template when
  multiple aliases exists.
- Backport #796
- Fixes #798
2023-06-22 16:37:06 +01:00
Janne Valkealahti
0edf4eb450 Fix parser handling of positional args
- Change to have better support for args like:

    "--arg1 a --arg2 b"
    "--arg1 a --arg2 b c"
    "--arg1 a c --arg2 b c"
    "c --arg1 a --arg2 b"

  where option can have default values and position of
  positional args doesn't matter that much.
- Make parser to be aware of if it's handling last option
  so that we can differentiate if error can be given i.e.
  with too many args, etc.
- Backport #795
- Fixes #797
2023-06-22 09:53:59 +01:00
Janne Valkealahti
d1592456a5 Make command not found configurable
- New CommandNotFoundResultHandler which handles
  CommandNotFound to be able to customize error shown.
- New CommandNotFoundMessageProvider which is a plain
  function given a "context" and returns a string.
  Context contains common info to provide better
  error messages.
- Default provider gives same message but
  removes long stacktrace(which previously originated
  from a common ThrowableResultHandler.
- Backport #778
- Relates #793
2023-06-20 12:33:54 +01:00