Commit Graph

956 Commits

Author SHA1 Message Date
Janne Valkealahti
1f027b8a7d Remove unused wrong workflow file 2024-01-12 15:30:02 +00:00
Janne Valkealahti
463a70414a Split jline dependencies
- From jline to console, reader, style and terminal.
- Fixes #968
2024-01-11 10:21:49 +00:00
Janne Valkealahti
27d93110ee Update jline 3.25.0
- Fixes #966
2024-01-10 14:52:08 +00:00
github-actions[bot]
f6e53ab228 Next development version 2024-01-03 10:02:02 +00:00
Janne Valkealahti
977faade68 Polish build docs 2024-01-02 17:06:34 +00:00
Janne Valkealahti
2fdd45a4d1 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.
- Fixes #960
2024-01-02 10:15:22 +00:00
Janne Valkealahti
51f49f7567 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.
- Fixes #961
2023-12-24 08:49:33 +00:00
Janne Valkealahti
cb8f44ff63 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:02:06 +00:00
Janne Valkealahti
4eab8be5d0 Upgrade spring-boot 3.2.1
- Fixes #952
2023-12-22 08:31:45 +00:00
Janne Valkealahti
56dffe0223 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.
- Fixes #946
2023-12-18 10:03:36 +00:00
Janne Valkealahti
934fcbd4ef Add editorconfig 2023-12-15 13:15:58 +00:00
Janne Valkealahti
320c9b21ab Add spring-configuration-metadata
- Adding boot's annotation processor to spring-shell-autoconfigure
  and spring-shell-test-autoconfigure
- Fixes #948
2023-12-15 09:49:26 +00:00
Janne Valkealahti
bfde7c7fe3 Add e2e help option tests
- Relates #885
2023-12-10 13:34:25 +00:00
Janne Valkealahti
4b7e4508d2 External terminal for vscode catalog launch 2023-12-10 09:57:44 +00:00
Janne Valkealahti
90df641750 Update hotkey docs
- Relates #826
2023-12-10 09:53:20 +00:00
Janne Valkealahti
b1084a62ee Fix wrong parser message
- Parser error message gave wrong lower level arity value
  if option didn't have enough arguments
- Fixes #930
2023-11-27 14:29:29 +00:00
Janne Valkealahti
8d6223de46 Upgrade spring-boot 3.2.0
- Fixes #934
2023-11-23 18:05:14 +00:00
Janne Valkealahti
ead34d69e1 Update modal docs
- Relates #825
2023-11-23 09:08:17 +00:00
Janne Valkealahti
b7ad099cc2 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
- Fixes #927
2023-11-16 10:31:52 +00:00
Janne Valkealahti
2d29050c34 Make Catalog browsers focusable with shortcuts
- Category and scenario list views can now be focused with
  ctrl+a/ctrl+s.
- Bind all keys with ctrl modifier
- Add "shortcut" concept to views which currently hooks to
  hot keys.
- In a catalog app by using a "shortcut" then takes the key
  event as a hot key, as it consumes resulting behaviour
  is to focus.
- Move view initInternal away from constructor call to
  require user to call init() which is not in a
  View interface
- Relates #826
2023-11-12 16:43:11 +00:00
Janne Valkealahti
a9b1675595 Upgrade antora-extensions 1.8.1
- Relates #922
2023-11-10 09:33:40 +00:00
Janne Valkealahti
8055a7ef4f Polish asciinema casts
- Polishing cast files should also temporarily
  do workaround for #922 until it's fixed on
  antora extension layer.
2023-11-08 10:20:59 +00:00
Janne Valkealahti
8097f1eb91 Pin python 3.11 in e2e tests
- Relates #909
2023-11-07 11:16:07 +00:00
Janne Valkealahti
ccf6d771d9 Add multiinput scenario
- InputView using viewcommands and has event for text change.
- Experimental way to handle tab navigation in a layout views.
- New viewcommands for tab navigation and moving cursor.
- Mouse click takes focus in AbstractView if no view command
  binding.
- MultiInputViewScenario now shows tab navigation.
- Fixes #917
2023-11-07 08:26:43 +00:00
icodening
21d1ce8599 Bugfix: Tab-completion fails 2023-11-06 18:07:56 +00:00
Janne Valkealahti
d88fa16d8e Upgrade spring-boot 3.2.0-RC2
- Fixes #916
2023-11-03 17:24:46 +00:00
Janne Valkealahti
efdf83a1ed 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
- Relates #891
- Relates #901
2023-11-03 14:27:40 +00:00
Janne Valkealahti
bba7a82ab4 Make StatusBarView work with hotkeys
- StatusItem can now define a hotkey which is then
  bound to its action.
- In catalog app replace use of raw key event to
  item's hotkey for status bar visibility.
- Various doc updates.
- Relates #826
2023-10-30 09:31:03 +00:00
Janne Valkealahti
db3f67784a Update docs 2023-10-28 09:16:42 +01:00
Janne Valkealahti
82df453cc0 Autoconfigure TerminalUI
- Add TerminalUIBuilder which can be used to build TerminalUI
- Add TerminalUICustomizer which can customize TerminalUI
- What is autoconfigured is TerminalUIBuilder.
- In TerminalUI add configure for views which now allows
  easier way to set needed stuff in views.
- Various changes in a catalog app
- Fixes #900
2023-10-25 09:10:42 +01:00
Janne Valkealahti
f3b8bf3de1 Make ShellTestIntegrationTests more reliable
- Temp workaround for letting tests pass
- Relates #899
2023-10-21 09:03:01 +01:00
Janne Valkealahti
eacd6c3df4 Make DefaultEventLoopTests more reliable
- Temp workaround for letting tests pass
- Relates #898
2023-10-21 09:02:52 +01:00
Janne Valkealahti
e2a7f340f3 Upgrade spring-boot 3.2.0-RC1
- Fixes #895
2023-10-20 17:33:14 +01:00
Janne Valkealahti
8f59c954e1 Upgrade gradle 8.4
- Fixes #896
2023-10-20 09:10:27 +01:00
Janne Valkealahti
4871b19c58 Polish 2023-10-20 09:03:08 +01:00
Janne Valkealahti
92eb7dd2b7 Relocate message package from view
- Relates #813
2023-10-20 08:48:36 +01:00
Janne Valkealahti
433c1f96f0 Relocate geom package from view
- Relates #813
2023-10-20 08:38:01 +01:00
Janne Valkealahti
d77bcac59c Update docs 2023-10-20 08:07:17 +01:00
Eddie
1b4170845f Update StringTemplate version in gradle.properties
Newer version contains bugfixes
2023-10-19 14:44:30 +01:00
Janne Valkealahti
8de0ef47df Better background handling in themes
- Modify view structures so that we're able to
  control background drawing better
- Remove transparent concept from box view
- Add background styles for dialog, menu/status bars
- Relates #824
2023-10-19 13:12:42 +01:00
Janne Valkealahti
860c8dcb93 Migrate docs shell samples to asciinema
- Update antora settings
- Move cast files and remove old ones
- Switch shell svg's to asciinema
- Fixes #884
2023-10-14 15:45:09 +01:00
Janne Valkealahti
52b242dcbf Polish scenario descriptions 2023-10-13 14:07:59 +01:00
Janne Valkealahti
f4eec7b809 Update docs 2023-10-08 15:16:20 +01:00
Janne Valkealahti
b6d1958949 HotKey can set focus
- Fix AbstractView to return focus info for hotkey handler
- TerminalUI sets focus from returned key handling
  for hotkeys
- Fixes #881
2023-10-08 09:19:47 +01:00
Janne Valkealahti
edddc0b2e8 Update docs 2023-10-07 15:35:42 +01:00
Janne Valkealahti
923498bbcf Update docs 2023-10-07 15:23:24 +01:00
Janne Valkealahti
8716774236 Enhance TerminalUI eventing
- New methods in an eventloop and message builder
- Generic polish to use these methods
- Relates #761
2023-10-07 14:56:54 +01:00
Janne Valkealahti
9a5f189783 Update docs 2023-10-07 08:09:51 +01:00
Janne Valkealahti
2e95fccbd5 Update docs 2023-10-06 17:25:34 +01:00
Janne Valkealahti
6f7eac435a Update docs 2023-10-06 17:07:16 +01:00