Commit Graph

559 Commits

Author SHA1 Message Date
Janne Valkealahti
f2d97ae2de Upload surefire reports in manual workflow 2022-05-17 16:14:46 +01:00
Janne Valkealahti
4a05106d86 Add manual build and test workflow 2022-05-17 10:24:15 +01:00
Janne Valkealahti
3a832b1a8e Add e2e readme 2022-05-15 20:04:20 +01:00
Janne Valkealahti
0f655a03ce Add missing headers to snippets 2022-05-15 16:46:42 +01:00
Janne Valkealahti
ac451ad4d0 Schedule e2e tests 3 times per week 2022-05-15 16:37:14 +01:00
Janne Valkealahti
7224ee31de Update e2e tests
- Add new e2e group to samples which can be used
  with particular tests.
- Relates #401
2022-05-15 16:29:48 +01:00
Janne Valkealahti
ee21619885 Update docs 2022-05-15 16:29:23 +01:00
Janne Valkealahti
60e63f87ae Update docs 2022-05-14 17:08:09 +01:00
Janne Valkealahti
ab476345fa Update docs 2022-05-14 16:36:53 +01:00
Janne Valkealahti
3599182536 Update docs 2022-05-14 09:02:37 +01:00
Janne Valkealahti
751c9e213e Update docs 2022-05-13 17:28:32 +01:00
Janne Valkealahti
d49429975d Expose default option in SingleItemSelector
- Tweak flow framework so that single item selector
  can be configured with a default item which is then
  "exposed" automatically so that user can just hit enter.
- Fixes #414
2022-05-13 15:38:37 +01:00
Janne Valkealahti
8477a5ac4c Update docs
- Add docs for component flow
- Relates #383
2022-05-11 15:36:10 +01:00
Janne Valkealahti
bed8457ff2 Update docs
- Split some adoc files
- Shuffle to reorg structure
- Relates #383
2022-05-11 10:18:11 +01:00
Janne Valkealahti
3515885993 Update graal 22.1.0 in e2e tests 2022-05-11 07:59:50 +01:00
Janne Valkealahti
0085df585a Update boot 2.6.7
- Update spring-native 0.11.5 as that should be used with
  boot 2.6.7.
- Fixes #411
2022-05-11 07:49:52 +01:00
Janne Valkealahti
38645a3cc2 Fix pr workflow
- Use corret jdk
- Relates #407
2022-05-11 07:24:47 +01:00
Janne Valkealahti
75ff6e976f Fix use of default values
- Change parsing to extract and use option default value
  and also hook it with @ShellOption.
- Fixes #409
2022-05-11 07:23:11 +01:00
Janne Valkealahti
6738c92117 Change samples build with workflows
- Relates #407
2022-05-10 16:23:04 +01:00
Janne Valkealahti
32baac91d5 Fix ConversionService in auto-config
- Now using qualifier for one we expect which should
  work if some other services are in a context.
- Properly use shellConversionService in defined
  MethodArgumentResolver beans.
- Fixes #400
2022-05-10 14:03:34 +01:00
Janne Valkealahti
1a1864f8c5 Update e2e tests
- Tweak things on win for settings combinations which might
  work with all trouble you're getting from win versions and
  node-pty, etc.
- Relates #401
2022-05-10 09:42:00 +01:00
Janne Valkealahti
8af3bd892e Change e2e timeouts
- Relates #401
2022-05-08 14:41:59 +01:00
Janne Valkealahti
c6a8e1c65c Update e2e tests
- Fix native configs for win in sample app.
- Integrate spring-native with samples app.
- Tweak e2e workflow to upload artifacts and some other generic changes.
- Relates #401
2022-05-08 14:19:35 +01:00
Janne Valkealahti
6d39c2b059 Change e2e timeouts
- Relates #401
2022-05-08 08:13:54 +01:00
Janne Valkealahti
d05d829a6f Change e2e timeouts
- Relates #401
2022-05-08 07:53:47 +01:00
Janne Valkealahti
3743a7f32d Initial attempt for e2e tests
- Add node code for e2e tests. This is a first take to try running
  these tests via actions.
- Relates to #401
2022-05-07 17:51:51 +01:00
Janne Valkealahti
8a23518b84 Rework command subsystem
- Focus of these changes are to introduce a new command system based on
  real registrations (new way) instead of continuously (old way) resolve
  methods and its parameters via reflection.
- There's a lot of changes as this resolution via reflection had its
  hooks almost everywhere and thus most changes are just refactorings.
- Order to understand real changes I'd start to look classes under
  `org.springframework.shell.command` package as it defines new registration,
  catalog and parser classes. Also samples contain new classes to demonstrate
  new functionality.
- Fixes #380
2022-05-06 08:32:53 +01:00
Janne Valkealahti
81e5bf8c81 Fix auto-config
- Remove JCommanderParameterResolverAutoConfiguration from
  spring.factories as it was mistake not to remove it.
- Relates #395
2022-05-03 16:08:07 +01:00
Janne Valkealahti
4e625feb03 Drop jcommander
- Fixes #395
2022-04-29 15:55:21 +01:00
Janne Valkealahti
d16cda75f3 Drop spring-shell-test-samples
- Fixes #394
2022-04-29 15:17:34 +01:00
Janne Valkealahti
942108e612 Update docs
- Split adoc files
- Relates #383
2022-04-23 08:36:10 +01:00
Janne Valkealahti
412053d414 Change bean name
- To not clash with exchangeStrategiesCustomizer bean name from boot
  change it to shellCommonComponentFlowCustomizer.
- This was a typical copy/pasting mistake.
2022-03-09 08:41:42 +00:00
Janne Valkealahti
bc267a2e18 Update jfrog cli 2.13.0 2022-03-05 13:08:23 +00:00
Janne Valkealahti
0e4825a71f Disable some jcommander tests on jre17
- For now to think about how things should work on 17
2022-03-05 09:42:15 +00:00
Janne Valkealahti
30e7c4d370 Add auto-config for ComponentFlow
- ComponentFlowAutoConfiguration which creates a builder bean
  and configures ComponentFlowCustomizer to set needed
  defaults for terminal, resource loader and template executor.
- Fixes #387
2022-03-05 09:37:27 +00:00
Janne Valkealahti
85976cff48 Native support for JCommander
- Fixes #340
2022-03-05 08:18:28 +00:00
Janne Valkealahti
c532dc227e Flow system for UI components
- Implement basic flow system with builder patterns
  to easily use components and hook those together
  as a flow.
- Fixes #364
2022-03-03 15:45:02 +00:00
Janne Valkealahti
e5151bb3a6 Update boot 2.6.4
- Fixes #382
2022-03-02 09:15:57 +00:00
Janne Valkealahti
7b547e53a8 Add dynamic command registration
- Extend CommandRegistry for add/remove methods.
- For rest of shell classes move to use registry
  directly instead of caching commands as registry
  is not immutable anymore.
- Add new sample
- Fixes #379
2022-02-26 09:26:23 +00:00
Janne Valkealahti
8920db699d Update component docs
- Relates #361
2022-02-24 09:25:38 +00:00
Janne Valkealahti
4733c3c7b5 Add custom renderer example for component 2022-02-24 09:24:29 +00:00
Janne Valkealahti
547e82ab93 Fix highlight in docs 2022-02-24 09:23:35 +00:00
Janne Valkealahti
114dbeccaa Fix NonInteractiveShellRunner for empty args
- Fix issue when empty args resulted runner to
  think it should handle this scenario effectively
  hijacking interactive mode.
- This bug were added by previous rework on #372
2022-02-22 09:47:20 +00:00
Janne Valkealahti
0a074b37e4 Polish 2022-02-22 08:07:52 +00:00
Janne Valkealahti
2d589f4752 Update readme 2022-02-22 08:07:05 +00:00
onobc
5f447aa831 Add support for multiple non-interactive commmands
Also:
* Rename ThemeResolver bean to avoid clash w/ Spring Boot registered ThemeResolver
* Move shell runner precedence to public static field to allow extension/access
2022-02-21 08:47:07 +00:00
Janne Valkealahti
7746e571b6 Fix version command due to recent rework 2022-02-20 14:44:43 +00:00
Janne Valkealahti
f1a93f7476 Polish stringinput when no default value 2022-02-20 08:47:45 +00:00
Janne Valkealahti
240cf2d96d Add new highlight style tag 2022-02-19 13:49:02 +00:00
Janne Valkealahti
ac80086094 Add missing field inits 2022-02-18 13:20:26 +00:00