Commit Graph

775 Commits

Author SHA1 Message Date
MJ Gallego
2cb0f115c6 Completion proposal support for complete jline parameter
- to allow completing single argument with multiple tab clicks,
  for example file paths.
- Backport #512
- Fixes #835
2023-07-25 09:59:26 +01:00
Janne Valkealahti
e2da0d0907 Upgrade spring-boot 3.0.9
- Fixes #818
2023-07-20 14:40:53 +01:00
github-actions[bot]
b5cb562d40 Next development version 2023-06-27 07:16:08 +00:00
Janne Valkealahti
0312e200d3 Add run-name to release workflow 2023-06-27 07:42:44 +01:00
Janne Valkealahti
a9d338d387 Add timeout for native build 2023-06-26 13:09:19 +01:00
Janne Valkealahti
f12f8c6720 Add run-name for e2e 2023-06-23 05:44:55 +01:00
Janne Valkealahti
66919689da Upgrade spring-boot 3.0.8
- Fixes #785
2023-06-22 16:10:27 +01:00
Janne Valkealahti
eaa363b34c Add better support for modified option names
- Longnames in a command option if modified via
  name modifier didn't provide enough backmapping
  info for command execution experience being accurate.
- Add new getLongNamesModified() into CommandOption
  which is populated if name modifier is used.
- Add more hints in CommandExecution for modified
  option names.
- This should bring annotation
  and programmatic commands up to date.
- Backport #777
- Fixes #782
2023-06-19 13:02:12 +01:00
github-actions[bot]
21fc4551e6 Next development version 2023-06-13 13:17:33 +00:00
Janne Valkealahti
304cf4be54 Revert "ExtendedDefaultParser should not add empty arguments"
This reverts commit af7be311cd.

Relates #764
2023-06-12 09:07:52 +01:00
Janne Valkealahti
52eb6b1811 Add jna native hints for linux
- Need for libjnidispatch.so, CLibrary$termios
  and CLibrary$winsize.
- Backport #762
- Fixes #768
2023-06-07 15:57:24 +01:00
Janne Valkealahti
af7be311cd ExtendedDefaultParser should not add empty arguments
- Fixes issue when last "word" is within quotes and
  cursor is at the end of a line which caused empty
  "word" string in an argument list.
- This then caused i.e. string option to have a collection
  as an input(if no arity settings used) and via
  spring conversions a comma were added.
- Backport #763
- Fixes #764
2023-06-07 15:56:37 +01:00
Janne Valkealahti
7768d46360 Test help command with e2e tests
- Backport #756
- Fixes #759
2023-06-02 06:19:49 +01:00
Janne Valkealahti
08b16d5290 Add hints for Availability targets
- Annotate ShellComponent with @Reflective and use custom
  AvailabilityReflectiveProcessor to find possible method
  targets returning Availability.
- Backport #747
- Fixes #758
2023-06-01 21:22:19 +01:00
Janne Valkealahti
8e98c183df Remove schedule from e2e 2023-06-01 08:44:40 +01:00
github-actions[bot]
515372019c Next development version 2023-05-25 15:43:43 +00:00
Janne Valkealahti
0b1ece8da6 Add input into ConfirmationInput
- Now displaying what user actually inputs
- Backport #740
- Fixes #746
2023-05-20 17:22:48 +01:00
Janne Valkealahti
94fa9edb73 Upgrade spring-boot 3.0.7
- Fixes #742
2023-05-19 08:30:13 +01:00
github-actions[bot]
8ab3da5471 Next development version 2023-05-08 08:17:28 +00:00
Janne Valkealahti
0be4cf06c1 Upgrade jline 3.23.0
- Backport #725
- Fixes #727
2023-04-28 17:48:49 +01:00
Janne Valkealahti
d4b26eea62 Migrate docs to spring-asciidoctor-backends
- Use io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.5
- As this relates to anon repo access, use ge conventions from
  public repos and fix some other used repos.
- Backport #722
- Fixes #724
2023-04-28 13:56:03 +01:00
Janne Valkealahti
4d9ba5b4a4 Upgrade spring-boot 3.0.6
- Fixes #718
2023-04-27 20:50:38 +01:00
github-actions[bot]
7980561e21 Next development version 2023-04-11 18:51:17 +00:00
cachescrubber
5ff6c40c45 Pass ShellContext to CommandCatalog.of in CommandCatalogAutoConfiguration (#693)
- Backport #702
- Fixes #704
2023-04-06 09:13:59 +01:00
Janne Valkealahti
cd9651eea8 Fix option type parsing
- In `CommandRegistration` add `ResolvableType` for `OptionSpec` giving
  more spesific handling of a type.
- In `CommandParser` handle source and target types so that we
  have generics with `List`, `Set` and arrays working better.
- In `HandlerMethodArgumentResolver` add better handling for
  `ConversionService` for generic types.
- In `StandardMethodTargetRegistrar` add better types via `ResolvableType`
  now that `CommandRegistration` support it.
- In `OptionConversionCommands` remove converter from `String` to `Set` as
  now things should work as is if generic in a `Set` has a converter.
- Backport #694
- Fixes #699
2023-04-02 14:43:18 +01:00
Janne Valkealahti
8ce7a11aa0 Upgrade spring-boot 3.0.5
- Fixes #695
2023-03-24 07:49:27 +00:00
Janne Valkealahti
40d6a8bdd9 Update docs copyright year 2023-03-18 16:51:19 +00:00
Janne Valkealahti
4416509a90 Fix ConfirmationInput template message
- Fix confirmation-input-default.stg to use correct style
  names in format.
- Backport #690
- Fixes #691
2023-03-17 08:42:51 +00:00
Simon Verhoeven
04c936223a Rename setMaskCharater to setMaskCharacter
- Backport #686
- Fixes #688
2023-03-12 16:10:38 +00:00
Janne Valkealahti
278039fe95 Upgrade spring-boot 3.0.4
- Fixes #684
2023-03-05 16:48:27 +00:00
github-actions[bot]
f0409c7254 Next development version 2023-02-27 17:37:12 +00:00
Janne Valkealahti
b0e9a13be0 Wrong arity for default boolean type
- Set boolean type arity zero or more as default.
- Backport #675
- Fixes #678
2023-02-27 15:41:08 +00:00
Janne Valkealahti
c91db3547d Upgrade spring-boot 3.0.3
- Fixes #661
2023-02-24 08:53:29 +00:00
Janne Valkealahti
3eeccd33be Rename command registration doc files 2023-02-23 09:57:40 +00:00
Janne Valkealahti
e469c148df Use correct type with set
- When target is set and only one option argument is given,
  we should not convert to list as user expects string to xxx
  Converter to work.
- This is how it used to work and previous changes caused
  regression.
- Bug is actually in an old parser and new parser works fine.
- Backport #667
- Fixes #670
2023-02-18 14:20:41 +00:00
Janne Valkealahti
8c7b70b21e Better e2e tests coverage
- Add integration tests for e2e samples.
- Add some missing commands for new annotation system.
- Backport #654
- Fixes #655
2023-02-06 09:04:24 +00:00
Janne Valkealahti
edfe67c00d Test terminal can set dimensions
- ShellTest now has fields which can be used to
  change terminal default widht/height.
- Backed by properties so can be used with
  `spring.shell.test.terminal-width` and
  `spring.shell.test.terminal-height`.
- Backport #656
- Fixes #659
2023-02-05 15:25:54 +00:00
Janne Valkealahti
3ed49d1bd6 Handle arg looking options better
- Now lexing better with valid options
- Only report unrecognised option with double dash
  as current parser don't have structure to do
  deeper analysis.
- Backport #651
- Fixes #652
2023-02-01 09:43:12 +00:00
Janne Valkealahti
88df6cc7b4 CommandRegistration should return same options
- Cache created CommandOption(s) to return same instance.
- Backport #648
- Fixes #650
2023-01-28 17:14:07 +00:00
Janne Valkealahti
1c4608fb89 OptionArity NONE value
- Backport #644
- Fixes #645
2023-01-27 09:42:16 +00:00
Janne Valkealahti
1a1ddaadc7 Reorganise e2e samples
- Backport #642
- Fixes #643
2023-01-26 14:19:50 +00:00
Janne Valkealahti
32fc72329b Define CommandExceptionResolver bean order
- CommandParserExceptionResolver uses default bean
  order -100.
- Backport #634
- Fixes #635
2023-01-25 17:59:49 +00:00
Janne Valkealahti
d7f0459874 Change workflows for new branch 2023-01-24 12:34:26 +00:00
github-actions[bot]
bd7f5b882c Next development version 2023-01-24 10:23:23 +00:00
Janne Valkealahti
d44d0c3016 Update next version workflow 2023-01-23 11:32:14 +00:00
Janne Valkealahti
ae3af74b20 Update release workflow 2023-01-23 11:04:07 +00:00
Janne Valkealahti
fb1616e0c6 Polish 2023-01-20 16:09:21 +00:00
Janne Valkealahti
df9c5b5483 Upgrade spring-boot 3.0.2
- Fixes #619
2023-01-20 09:54:24 +00:00
Janne Valkealahti
624343ace2 Handle collection types in a parser
- Handle any option collection type so that list is generated for
  values, this then works well when actual type conversions happen.
- Fixes #630
2023-01-19 17:33:18 +00:00
Janne Valkealahti
56b9cb20ef Document String array option type
- Fixes #628
2023-01-19 11:32:37 +00:00