Janne Valkealahti
36712e4ac2
Update schedule-e2e workflow
2023-06-02 06:25:34 +01:00
Janne Valkealahti
f2a48a061d
Test help command with e2e tests
...
- Fixes #756
2023-06-02 06:19:12 +01:00
Janne Valkealahti
af34526e82
Add hints for Availability targets
...
- Annotate ShellComponent with @Reflective and use custom
AvailabilityReflectiveProcessor to find possible method
targets returning Availability.
- Fixes #747
2023-06-01 21:17:29 +01:00
Janne Valkealahti
f6f979a04c
Update e2e readme
2023-06-01 09:08:16 +01:00
Janne Valkealahti
f2240a2c5e
Schedule e2e in main and 3.0.x
2023-06-01 08:43:31 +01:00
Janne Valkealahti
c125c46010
Add short options into valid tokens
...
- Add short options as valid tokens in a `CommandModel` so that Lexer
create tokens with accurate info and doesn't then cascade this issue
in Ast and Parser.
- Previously with a command `command -a aaa -b bbb` tokenisation resulted
`COMMAND OPTION ARGUMENT ARGUMENT ARGUMENT` with multiple short options
while it should have been `COMMAND OPTION ARGUMENT OPTION ARGUMENT`.
- Relates #757
2023-05-31 17:28:21 +01:00
Janne Valkealahti
8cba636fdb
Remove unused ci-publish workflow
2023-05-28 16:33:31 +01:00
Janne Valkealahti
96ef260d1e
Update labels
2023-05-25 20:57:35 +01:00
github-actions[bot]
26746254a5
Next development version
2023-05-25 15:58:16 +00:00
Janne Valkealahti
812997f3a8
Add central manual release workflow
2023-05-25 15:01:00 +01:00
Janne Valkealahti
b63aab08a9
Add input into ConfirmationInput
...
- Now displaying what user actually inputs
- Fixes #740
2023-05-20 17:20:46 +01:00
Janne Valkealahti
8bed75ad77
Support plain boolean without option annotations
...
- Fix so that we can have `boolean arg` without using
`@Option` or `@ShellOption` defaulting to false.
- Fixes #744
2023-05-20 14:49:21 +01:00
Janne Valkealahti
96402a79b6
Upgrade spring-boot 3.1.0
...
- Fixes #743
2023-05-19 08:30:48 +01:00
Janne Valkealahti
8e05aa97ca
Upgrade spring-boot 3.1.0-RC2
...
- Fixes #733
2023-05-05 15:36:34 +01:00
Janne Valkealahti
7f9efd1374
Fix docs for option label
...
- Relates #732
2023-05-01 17:27:05 +01:00
Janne Valkealahti
a0ad3ad797
Support label with @Option
...
- Add `label` field into `@Option`. This sets option label if
`label` field has any text.
- Fixes #732
2023-05-01 17:11:03 +01:00
Janne Valkealahti
755cf66350
Update annotation docs
...
- Relates #637
2023-05-01 09:25:23 +01:00
Janne Valkealahti
9d27466c6a
Support explicit arity min max with @Option
...
- @Option now has arityMin/arityMax which if defined,
non-negative, are used instead of arity.
- Fixes #731
2023-05-01 08:36:41 +01:00
Janne Valkealahti
c36aa41878
Use tabs in samples
...
- Use tabbing model from a new docs backend.
- Relates #637
2023-05-01 08:29:37 +01:00
Janne Valkealahti
6db122a498
Upgrade jline 3.23.0
...
- Fixes #725
2023-04-28 17:47:54 +01:00
Janne Valkealahti
0724523e78
Upgrade spring-boot 3.1.0-RC1
...
- Upgrade gradle 7.6.1 due to https://github.com/gradle/gradle/issues/24390
- Fixes #717
2023-04-28 14:52:22 +01:00
Janne Valkealahti
2cc7f8ec39
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.
- Fixes #722
2023-04-28 13:36:09 +01:00
Janne Valkealahti
1c73ca4f73
Revert to spring-boot 3.1.0-M1
...
- Relates #717
2023-04-28 13:15:56 +01:00
Janne Valkealahti
2d714c04cf
Upgrade spring-boot 3.1.0-RC1
...
- Fixes #717
2023-04-27 20:48:40 +01:00
Janne Valkealahti
fa1adeaa82
Disable tests with manual build
2023-04-10 17:56:17 +01:00
Janne Valkealahti
0f5f5e0ca7
Upload buildlogs with failure in e2e tests
2023-04-10 16:27:41 +01:00
Janne Valkealahti
b934ddeccb
Polish
2023-04-10 15:56:11 +01:00
Janne Valkealahti
5a4a241cb8
Refactor short option docs
...
- Add e2e samples
- Add short option snippets as tabs content(to get later
converted to an actual tabs).
- Relates #637
2023-04-10 14:48:57 +01:00
Janne Valkealahti
62e469be49
Polish naming in docs
...
- Relates #637
2023-04-08 17:15:47 +01:00
Janne Valkealahti
efbc223118
Refactor option basic docs
...
- Document better a relationship between annotation,
legacy annotation and programmatic registration.
- Relates #637
2023-04-07 16:54:55 +01:00
cachescrubber
84cb5a7332
Pass ShellContext to CommandCatalog.of in CommandCatalogAutoConfiguration ( #693 )
...
- Fixes #702
2023-04-06 09:08:09 +01:00
Janne Valkealahti
a05752713d
Revert "Update issue handler for prs"
...
This reverts commit fbbfd7b9c9 .
2023-04-06 08:49:49 +01:00
Janne Valkealahti
fbbfd7b9c9
Update issue handler for prs
2023-04-06 08:45:33 +01:00
Janne Valkealahti
2e19929a32
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 #699
- Fixes #700
2023-04-05 18:56:09 +01:00
Janne Valkealahti
64abc1da22
Fix positional args with new parser
...
- Better alignment for use of positional args without using
an option.
- Should work similarly with old parsing framework.
- Change position where missing options are checked.
- Fixes #701
2023-04-05 13:42:22 +01:00
Janne Valkealahti
a3a6c0e15a
Update labels
2023-04-01 14:23:08 +01:00
Janne Valkealahti
e7b4c82e34
Upgrade spring-boot 3.1.0-M2
...
- Fixes #697
2023-03-24 16:06:34 +00:00
Janne Valkealahti
575d95428b
Update docs copyright year
2023-03-18 16:50:38 +00:00
Janne Valkealahti
a9c52e2a19
Add notes to docs about new annotation model
...
- Relates #637
2023-03-18 16:40:34 +00:00
Janne Valkealahti
cfd2b7f72e
Fix ConfirmationInput template message
...
- Fix confirmation-input-default.stg to use correct style
names in format.
- Fixes #690
2023-03-17 08:40:41 +00:00
Janne Valkealahti
0363b38204
Polish
2023-03-13 08:56:42 +00:00
Janne Valkealahti
93f2cf00de
Rename name to provider
...
- Align naming in CommandAvailability
- Relates #663
2023-03-13 08:54:23 +00:00
Simon Verhoeven
60126b9c47
Rename setMaskCharater to setMaskCharacter
2023-03-12 16:08:54 +00:00
Janne Valkealahti
eaa3e5caf9
OptionValues supports multiple resolvers
...
- Change ref field in OptionValues to providers
takin an array.
- Relates #637
2023-03-05 16:38:01 +00:00
Janne Valkealahti
d4506d2583
Fix setup-java configs
2023-02-27 17:46:20 +00:00
Janne Valkealahti
c46bf91dae
Wrong arity for default boolean type
...
- Set boolean type arity zero or more as default.
- Fixes #675
2023-02-27 10:12:09 +00:00
Janne Valkealahti
fd73531986
Document @Option long name
...
- Relates #637
2023-02-24 12:18:16 +00:00
Janne Valkealahti
07e08b36a7
Document registration with @Command
...
- Split and separate new annotations with legacy annotations
on a registration level.
- Relates #637
2023-02-24 09:55:26 +00:00
Janne Valkealahti
1170ec965c
Upgrade spring-boot 3.1.0-M1
...
- Fixes #662
2023-02-24 08:54:49 +00:00
Janne Valkealahti
44734fd634
Rename command registration doc files
2023-02-23 09:57:42 +00:00