Commit Graph

984 Commits

Author SHA1 Message Date
Janne Valkealahti
daebf98918 Upgrade spring-boot 3.2.3
- Fixes #1007
2024-02-22 20:42:53 +00:00
Janne Valkealahti
28459388b6 Polish 2024-02-18 16:51:25 +00:00
Janne Valkealahti
8705822ad3 Add initial ProgressView docs
- Relates #995
2024-02-17 15:52:00 +00:00
Janne Valkealahti
cdb2eb8ca1 Rename Context to ProgressContext
- Relates #995
2024-02-17 14:28:51 +00:00
Janne Valkealahti
192eb5e506 Add ProgressView initial scenario
- Relates #995
2024-02-16 17:53:21 +00:00
Janne Valkealahti
7c91dbff8a Scenario lifecycle methods
- Add ScenarioContext which knows about View and start/stop
  runnable methods.
- Change Catalog to rely on ScenarioContext and call
  start/stop on an appropriate moment.
- Still keep Scenario.build() around so that we have time
  to refactor in favour of ScenarioContext.buildContext()
  or whatever build() method in it should be.
- Fixes #1004
2024-02-16 17:53:03 +00:00
Janne Valkealahti
d38d0d46e0 Fix wrong ProgressView ctor use
- Fixes a bug so that given items are actually used
- Relates #995
2024-02-16 09:27:00 +00:00
Janne Valkealahti
77a694848c ScriptShellRunner should have correct run detection
- Fix run detection so that @ has to be first character in a first
  argument and it also has additional content, like @path-to-file.
- This fixes issue where `--arg @` would blow up as an normal
  option argument.
- Fixes #996
2024-02-15 10:17:04 +00:00
Janne Valkealahti
afb8bc7104 Revisit ProgressView
- Polish a lot of things
- Do updates/redraw internally with eventloop as it'd be super
  inconvenient asking user to handle this externally
- Rewrite sample to be more unified for various cases
- Set eventloop from ViewComponent
- Relates #995
2024-02-15 09:26:23 +00:00
Janne Valkealahti
27c2717d3b Can attempt message send without subscribers
- Change state assert not to throw if we're in state
  where message would never get consumed. Now
  just returning false.
- Fixes #1002
2024-02-15 09:26:03 +00:00
Janne Valkealahti
a13109dd38 Remove 3.0.x from e2e test scheduling 2024-02-11 14:27:46 +00:00
Janne Valkealahti
547e7167b6 Change e2e native tests to use latest graal
- jdk21 and latest graalvm
- Fixes #999
2024-02-11 13:48:56 +00:00
Janne Valkealahti
7fa953f131 ViewComponent async execution
- Modifies ViewComponent with changed api's so that
  it can be executed with a thread allowing caller
  not to block.
- Add ViewComponentBuilder concept and create is as
  a bean similar to TerminalUIBuilder.
- Relates #997
2024-02-10 15:08:34 +00:00
Janne Valkealahti
abc4ffaaa3 ProgressView spinner theming
- New SpinnerSettings which integrates with ThemeSettings
- Support infra around spinner theming
- Relates #995
2024-02-04 14:57:23 +00:00
Janne Valkealahti
95aaa865c5 ProgressView spinner calculation in item function
- Move spinner frame calculation to item itself so that
- Remove spinnerFrame from state and add
  start/update times
- view don't have hard dependency to it, as we'd
  need its interval
- Change spinner to run only when view is running
- Relates #995
2024-02-04 09:43:56 +00:00
Janne Valkealahti
9446afecb7 Make ViewComponent api better for expected use
- Exposing eventloop if user need to interact with it
- Add api/feature to set used view rect expand to
  full terminal width
- Add plain ProgressView samples
- Relates #995
- Fixes #997
2024-02-02 09:32:07 +00:00
Janne Valkealahti
10d9940299 Initial ProgressView implementation
- Provides a basic feature set for ProgressView.
- Progress can have a set of items which are driven
  by function style factory interface.
- New class TextCell which is a base of progress items.
- Not yet fully working and further changes, samples, docs
  will come in other commits.
- Relates #995
2024-02-02 08:44:28 +00:00
Janne Valkealahti
3d52f174af Don't fail writing text outside screen
- Adding np check not to try using item outside of a screen
- This fix essentially discards text write beyond screen bounds
- Fixes #993
2024-01-29 09:42:57 +00:00
Janne Valkealahti
9830fafe1a Use CommandContext as method parameter
- With annotation(@Command) model it's now possible to just
  add CommandContext and it will get resolved and doesn't
  cause it to appear as an option.
- Fixes #779
2024-01-26 13:49:30 +00:00
Eric Haag
ef3b6e1f3d Add Revved up by Develocity badge 2024-01-25 18:36:40 +00:00
Janne Valkealahti
5e093e02a4 Update jline 3.25.1
- Fixes #982
2024-01-23 15:05:06 +00:00
github-actions[bot]
2b9e778c3e Next development version 2024-01-22 09:16:00 +00:00
Janne Valkealahti
99cf7e3c18 Update spring-boot 3.2.2
- Fixes #978
2024-01-20 08:38:02 +00:00
Janne Valkealahti
e64e1fbcb5 Polish javadocs 2024-01-18 17:10:47 +00:00
Stephen Lawrence
efc80bb74f Clarifying the confusing note 2024-01-16 23:55:10 -08:00
Janne Valkealahti
a37bd6ad5a Fix alias handling with @Command annotation
- Revisit how alias commands are added using
  @Command annotation when using if/or on class
  and/or method level.
- With this change alias handling is more logical
  and there's better tests and docs.
- Fixes #945
2024-01-13 12:20:06 +00:00
Janne Valkealahti
c0301933fd Add custom local antora playbook 2024-01-13 12:10:13 +00:00
Janne Valkealahti
a6d16e8cbb Restore cursor using normal capability
- Looks like some infocmp capabilities for making cursor visible
  using cvvis doesn't always work. So change to use cnorm instead.
- Terminal instruction of making cursor very visible with cvvis
  doesn't mean cursor should be visible, afaik, so i.e. screen
  or tmux didn't work.
- Fixes #970
2024-01-12 15:42:01 +00:00
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