Commit Graph

678 Commits

Author SHA1 Message Date
Janne Valkealahti
267c0e6fa4 Update labels 2022-10-18 15:00:52 +01:00
Janne Valkealahti
3021704c29 Support hidden commands
- CommandRegistration now has a structure to define
  it beind hidden
- Modify relevant parts to filter out hidden commands
- Essentially command is hidden from all other than
  command execution
- Sample in e2e tests
- Fixes #416
2022-10-18 14:51:44 +01:00
Janne Valkealahti
feba345f00 Component text can be truncated
- BaseComponentContext has new field terminalWidth.
- StringToStyleExpressionRenderer contains new format
  for "truncate-" prefixes and this is something
  what template can use to instruct max length based
  on terminal width.
- Change single/multi selectors to use this feature.
- Fixes #543
2022-10-14 17:16:51 +01:00
Janne Valkealahti
4c48017a97 Implement more flexible error handling
- Add exception handling around new interface CommandExceptionResolver
  which allows to define a chain of resolvers to process errors before
  exception is bubbled up to result handlers.
- Will be foundation to add more sophisticated error handling features
  compared to what spring itself have for rest layer.
- Resolver returns CommandHandlingResult holder which further can be
  used to make a choice what to print into console and if spesific exit
  code should be used in non-interactive mode.
- Exception handling can be defined globally and per command giving
  a change for user to customise i.e. error thrown by parser.
- CommandParserExceptionResolver replaces CommandParserExceptionsExceptionResultHandler
  and provides more meaninful message for missing options.
- Fixes #503
2022-10-14 10:55:05 +01:00
Janne Valkealahti
3fe26025cd Process given values is a parser
- Modify CommandParser to convert given option value if its type is defined
- This change makes option default value to behave same as given value
  what comes for the actual value in a CommandContext.
- Fixes #548
2022-10-14 06:33:44 +01:00
Janne Valkealahti
df45b625c7 Update labels 2022-10-06 13:07:46 +01:00
Janne Valkealahti
226b081c1c Upgrade native-build-tools 0.9.14
- Update docs
- Fixes #540
2022-10-03 09:20:49 +01:00
Janne Valkealahti
e02503ef3f Update milestone workflow
- Relates #535
2022-09-28 17:52:48 +01:00
Janne Valkealahti
3660d61609 Upgrade spring-boot 3.0.0-M5
- Fixes #523
2022-09-23 09:22:24 +01:00
Janne Valkealahti
23df374660 Migrate auto-configuration registration
- Move auto-configs from spring.factories to imports file.
- Relates #523
2022-09-22 16:17:25 +01:00
Janne Valkealahti
a1bd979548 Link to logging section
- Relates #527
2022-09-15 09:41:19 +01:00
Janne Valkealahti
f9de69347b Add graal build instructions
- Relates #527
2022-09-15 09:37:06 +01:00
Janne Valkealahti
0ef394c47e Add notes about logging
- Relates #527
2022-09-14 15:30:54 +01:00
Janne Valkealahti
6f220e2ea4 Fix deprecation in aot hints 2022-09-14 15:11:01 +01:00
Janne Valkealahti
15f03b358f Rework getting started section
- With build add feature to resolve dep versions which
  can be used in docs.
- More polished maven/gradle example.
- Relates #527
2022-09-14 09:09:25 +01:00
Janne Valkealahti
754e00d0ae Add Automatic-Module-Name to jar manifest
- Basically doing same what framework/boot does for jar manifests.
- Copied gradle settings from boot which gives us dot format like
  Automatic-Module-Name: spring.shell.core
- Fixes #529
2022-09-13 09:26:42 +01:00
Selim Horri
46b2b54b1e Docs correctness!
Hi,
This is a simple careless mistake that i noticed when reading Spring Shell docs.
Simple but worth it! :)
Kindest,
2022-09-12 09:30:26 +01:00
guang384
37b0578c5d Wraps ExtendedArgumentList into CompletingParsedLine prevent WARNING during startup.
- Idea/hack copied from jline LineReaderImpl
- Fixes #526
2022-09-12 09:22:48 +01:00
Janne Valkealahti
c0517c8bfa Remove gradle metadata publish
- Remove broken metadata module files to possibly
  bring those back when concept is more useful and
  easier to setup/test.
- Fixes #521
2022-09-08 17:36:14 +01:00
Janne Valkealahti
93a614891f Add starter for jansi
- Fixes #525
2022-09-08 13:17:15 +01:00
Janne Valkealahti
f2009e2cb3 Move starter modules under starters
- Now all starters are kept under spring-shell-starters dir.
- Fixes #524
2022-09-08 13:12:12 +01:00
Janne Valkealahti
ae7802204d Customize poms with correct dependencyManagement
- This is a fix for regression introduced in a9a420df22
  which was an attempt to work better with boot's aot plugin.
- Fix is a bit hacky but should work until we find better fix for this using
  tooling from gradle.
- Fixes #521
2022-09-07 17:35:23 +01:00
Janne Valkealahti
68af0bb804 Move runtime hints from sample to core
- Relates #490
2022-09-07 09:58:25 +01:00
Janne Valkealahti
146f9165ea Fix wrong jni fields in java.nio.Buffer 2022-09-07 08:51:01 +01:00
Janne Valkealahti
a79d2a6c53 Switch sample jni config programmatic
- Now generating jni-config.json via hints to test
  that side instead of having manually crafted file.
- Relates #490
2022-09-06 19:48:02 +01:00
Janne Valkealahti
a9a420df22 Switch to use implementation config
- Now switching to use implementation configuration as it
  works better with aot tooling.
- Relates #470
2022-09-06 19:39:14 +01:00
Janne Valkealahti
cf7c409d1c Enable ge settings with ci workflow 2022-08-23 08:27:34 +01:00
Janne Valkealahti
eab5b7267c Change pr workflow to gradle 2022-08-23 07:42:46 +01:00
Janne Valkealahti
7c4700b7b5 Fix next handling in ComponentFlow
- This fixes a bug where returning null from a next()
  didn't stop a flow.
- Fixes #510
2022-08-22 16:30:08 +01:00
Janne Valkealahti
52baaa3f86 Use graal metadata repository
- New version 0.1.1 now enabled in sample.
- Remove hibernate validator hints as those are
  in metadata repo.
- Relates #490
2022-08-19 08:09:06 +01:00
Janne Valkealahti
310cbf84a0 Remove old spring-native sample config
- Relates #490
2022-08-19 08:05:17 +01:00
Janne Valkealahti
42d2b68d5e Update readme 2022-08-18 16:17:45 +01:00
Janne Valkealahti
79350939a5 Handle When.MAYBE warning
- Add com.google.code.findbugs:jsr305 to compileOnly
  order to get rid of warnings.
2022-08-18 08:51:35 +01:00
Janne Valkealahti
eb82af42ed Polish javadocs 2022-08-18 08:34:13 +01:00
Janne Valkealahti
650f0ae3a5 Update labels 2022-08-18 08:26:51 +01:00
Janne Valkealahti
beed1cd681 Upgrade gradle 7.5.1
- Fixes #506
2022-08-18 07:56:50 +01:00
Janne Valkealahti
57b9259701 Split builtin command docs
- Fixes #504
2022-08-17 17:37:05 +01:00
Janne Valkealahti
6749ec228d Add gradle ge integration 2022-08-17 17:18:29 +01:00
Janne Valkealahti
61cdf0a744 Create JavaConventions for better options
- Looks like with gradle we don't get automatic utf-8 encoding with compiler
  so add it and same time use separate JavaConventions as we want to
  apply it to modules and samples.
- Relates #470
2022-08-17 14:17:18 +01:00
Janne Valkealahti
bb7afdf10f Configure build-info for sample
- e2e tests version command fails without build-info.
- Relates #470
2022-08-17 09:28:38 +01:00
Janne Valkealahti
212ee43989 Change e2e tests for gradle changes
- Fix e2e workflow to build with gradle.
- Fix e2e paths to ones generated by gradle.
- Relates #470
2022-08-17 08:52:19 +01:00
Janne Valkealahti
fee09f9ff5 Integration native build to sample
- This adds a way to build native binary for a sample which
  were missed from original gradle work.
- Relates #470
2022-08-17 08:45:31 +01:00
Janne Valkealahti
2173c9bf84 Change management deps to be constraints
- Looks like if plain deps are not defined as constraints test
  deps will leak into a fatjar build i.e. with sample.
- Change it how its done in spring security where this idea
  was taken.
- Remove use of maven-publish plugin which is not needed.
- Relates #470
2022-08-17 08:42:51 +01:00
Janne Valkealahti
891e1e17ef Polish 2022-08-16 15:08:31 +01:00
Janne Valkealahti
c1c1da84db Remove maven build
- Relates #470
2022-08-16 12:48:04 +01:00
Janne Valkealahti
dfb931c2ee Config jfrog to use plugin
- Relates #470
2022-08-16 12:33:51 +01:00
Janne Valkealahti
19902ed021 Add missing runs-on to ci workflow
- Relates #470
2022-08-16 12:08:46 +01:00
Janne Valkealahti
a45e0abf58 Change ci workflow to use gradle
- Relates #470
2022-08-16 12:06:53 +01:00
Janne Valkealahti
39c4519a3f Add gradle build files
- First set of changes for introduction of a gradle build.
- Relates #470
2022-08-16 10:30:15 +01:00
Janne Valkealahti
a143d25ffc Apply correct completion
- This commit fixes two issues.
- Firstly complete with correct option as existing bug was
  to wrongly always complete with first option which used
  wrong provider.
- Secondly filter out duplicate option proposals giving better
  result when options is already in place.
- Fixes #495
2022-08-04 09:08:11 +01:00