Commit Graph

864 Commits

Author SHA1 Message Date
Rob Winch
2ee3fff367 Enable Section Summary TOC for small pages 2023-08-03 14:58:09 -05:00
Rob Winch
d1105f5b8e Fix cross references 2023-08-03 14:58:09 -05:00
Rob Winch
17d0b3b89a Remove includes 2023-08-03 14:58:09 -05:00
Rob Winch
94dccea766 Generate a default navigation 2023-08-03 14:58:09 -05:00
Rob Winch
ce65cf67f6 Fix indentation for all pages 2023-08-03 14:58:09 -05:00
Rob Winch
02964ae385 Copy default antora files 2023-08-03 14:58:09 -05:00
Rob Winch
ca59c54b8a Fix image::image 2023-08-03 11:11:12 -05:00
Rob Winch
f846e7ea07 Insert explicit ids for headers 2023-08-03 11:11:12 -05:00
Rob Winch
9b5ed3a9eb Migrate Structure 2023-08-03 11:11:12 -05:00
Rob Winch
2ba6990f72 Remove unused using-shell-options-generic.adoc 2023-08-03 10:28:09 -05:00
Janne Valkealahti
0dbe51056d Polish 2023-08-02 09:05:23 +01:00
Greg Cooper
c5145a2fe6 Do not include timestamp for buildInfo. 2023-08-02 08:51:35 +01:00
Janne Valkealahti
4a56d2a886 Support initial checked state
- In MenuView initial check state can be set.
- Relates #832
2023-08-02 07:42:25 +01:00
Janne Valkealahti
e149dfaf14 Add better checked support in MenuView
- Keeping checked states outside of items.
- Revamp generic structure
- Can toggle item checked states
- Relates #832
2023-07-30 08:25:33 +01:00
Janne Valkealahti
43ccccaeab Upgrade gradle 8.3.0-RC2
- Fixes #837
2023-07-28 14:48:53 +01:00
Janne Valkealahti
1b7003cccc Update nexus timeouts 2023-07-26 12:44:18 +01:00
Janne Valkealahti
a024958e66 Update nexus workflows 2023-07-26 12:07:31 +01:00
MJ Gallego
b9180ba899 Completion proposal support for complete jline parameter
- to allow completing single argument with multiple tab clicks,
  for example file paths.
- Fixes #512
2023-07-25 09:11:34 +01:00
Janne Valkealahti
a4edc4e16f Polish 2023-07-23 14:19:48 +01:00
Janne Valkealahti
fe8c8646a1 Mouse click selects in ListView
- Add binding to click and select item from index
  if it's in bounds.
- Relates #806
2023-07-23 14:05:09 +01:00
Janne Valkealahti
d4bfe610a9 Fix key handling in AppView
- Now offering to menu if it has focus so that it
  can do its things. Essentially if menu is visible
  it take keys.
- Relates #807
2023-07-23 09:04:29 +01:00
Janne Valkealahti
3a2d7d4817 Restore focus after returning from scenario
- Relates #811
2023-07-22 17:27:21 +01:00
Janne Valkealahti
4b927be807 Hide statusbar in a catalog app
- Can clear items from a GridView
- Full refactor for AppView now using GridView internally
  and can hide/show menu/status.
- Add function key bindings f1-f10
- Modify catalog app to use new features in an AppView, listen
  F10 key to toggle statusbar visibility.
- Relates #805
- Relates #807
- Relates #811
2023-07-22 14:21:10 +01:00
Janne Valkealahti
cd77272091 Add test for GridView row layout
- Relates #805
2023-07-22 07:52:42 +01:00
Janne Valkealahti
a19a50b3f3 Polish GridView
- Add some new tests
- Add javadocs
- Relates #805
2023-07-21 18:06:57 +01:00
Janne Valkealahti
c074af314b Add focused color and style for BoxView title
- May define focused color and style for title
  which overrides normal color and style if set.
- Use these in a catalog app.
- Relates #804
2023-07-21 09:26:31 +01:00
Janne Valkealahti
748f41103d Fix removed deprecation
- Fix property values which doesn't exist in gradle zip task anymore.
- Relates #821
2023-07-21 08:09:24 +01:00
Janne Valkealahti
9de09995de Upgrade spring-boot 3.2.0-M1
- Fixes #787
2023-07-20 18:45:41 +01:00
Janne Valkealahti
a55034e454 Remove unused repo from buildSrc 2023-07-20 18:45:33 +01:00
Janne Valkealahti
0b08e98128 Create docsarchive configuration before convention
- Zip dist didn't get published and looks like docsarchive
  needs to exist before ArtifactoryConventions is applied.
- Relates #821
2023-07-20 17:11:12 +01:00
Janne Valkealahti
aa9baf4eeb Use custom configuration name for docs zip
- With gradle 8.3 artifactory publish started to fail with
  archives configation. Change that to docsarchive which
  is created in a RootPlugin.
- Relates #821
2023-07-20 16:02:35 +01:00
Janne Valkealahti
fb9bdc4d3a Upgrade gradle 8.3.0-RC1
- Fixes #821
2023-07-20 14:55:23 +01:00
Janne Valkealahti
eab938af8a Polish error messages
- Polish mandatory option message by using
  same format as in 3.0.x. (old parser)
- Remove prefixed code/position parts from
  all messages coming from a parser. (new parser)
- Fixes #815
2023-07-19 08:11:58 +01:00
Janne Valkealahti
d053fab383 Expose column and row min setting in GridView
- Add method setMinSize for setting minimum width for columns
  and minimum height for rows.
- Relates #805
2023-07-16 18:13:39 +01:00
Janne Valkealahti
3ac48bf15a Add missing GridView tests
- Add some new tests and reorg into nested model.
- Relates #805
2023-07-16 13:33:21 +01:00
Janne Valkealahti
a0bdbfc033 Initial terminal ui implementation
- This commit adds proof of concept work for terminal ui as is.
- Some things work, some don't but we need to start from somewhere.
  Further development continues in a main.
- Essentially we are starting to have enough so that it merits to
  move all this work into a main repo.
- Everything new is kept under org.springframework.shell.component.view
  and will get revisiter later to find correct locations for some classes.
- Catalog sample has been modified to provide "showcase" app for
  terminal ui features. This is a start while it already contains
  some usefull scenarios.
- Relates #800
- Relates #801
- Relates #802
- Relates #803
- Relates #804
- Relates #805
- Relates #806
- Relates #807
- Relates #808
- Relates #809
- Relates #810
- Relates #811
2023-07-15 16:42:39 +01:00
Janne Valkealahti
da04202822 Modify gitignore 2023-07-15 16:24:46 +01:00
Janne Valkealahti
625619fc92 Add primary command sample
- New spring-shell-sample-catalog which is a skeleton meant for
  future view overhaul work.
- Relates #755
2023-07-05 10:35:30 +01:00
Janne Valkealahti
6fd1a1c78a Add primary command docs
- Relates #755
2023-07-05 10:34:17 +01:00
Janne Valkealahti
32675c5e73 Add primary command feature
- NonInteractiveShellRunner can now shortcircuit into primary command
  just running it and passing args.
- Add hooks into autoconfig so that this is easy to configure.
- Relates #755
2023-07-05 10:33:55 +01:00
Janne Valkealahti
4ee1907f00 Add run-name to release workflow 2023-06-27 07:42:31 +01:00
Janne Valkealahti
770d4e373c Add timeout for native build 2023-06-26 13:07:42 +01:00
Janne Valkealahti
34aa01a21d Fix e2e workflow 2023-06-26 09:40:49 +01:00
Janne Valkealahti
49a791a0fa Fix e2e workflow 2023-06-26 07:28:19 +01:00
Janne Valkealahti
df40964e7b Document CommandNotFoundMessageProvider
- Relates #778
2023-06-23 06:30:30 +01:00
Janne Valkealahti
304566becd Add run-name for e2e 2023-06-23 05:45:05 +01:00
Janne Valkealahti
cdd703efa4 Fix alias usage with Command annotation
- Fix alias command extraction from existing @Command
  annotations so that we actually get multiple aliases
  defined if more than one defined on a method level.
- Fix rendering issue in a help stg template when
  multiple aliases exists.
- Fixes #796
2023-06-22 16:00:00 +01:00
Janne Valkealahti
811f1f9a55 Fix parser handling of positional args
- Change to have better support for args like:

    "--arg1 a --arg2 b"
    "--arg1 a --arg2 b c"
    "--arg1 a c --arg2 b c"
    "c --arg1 a --arg2 b"

  where option can have default values and position of
  positional args doesn't matter that much.
- Make parser to be aware of if it's handling last option
  so that we can differentiate if error can be given i.e.
  with too many args, etc.
- Fixes #795
2023-06-22 09:46:01 +01:00
Janne Valkealahti
9ef509a4da Make command not found configurable
- New CommandNotFoundResultHandler which handles
  CommandNotFound to be able to customize error shown.
- New CommandNotFoundMessageProvider which is a plain
  function given a "context" and returns a string.
  Context contains common info to provide better
  error messages.
- Default provider gives same message but
  removes long stacktrace(which previously originated
  from a common ThrowableResultHandler.
- Relates #778
2023-06-20 11:31:19 +01:00
Janne Valkealahti
38f9126aeb Add better support for modified option names
- Longnames in a command option if modified via
  name modifier didn't provide enough backmapping
  info for command execution experience being accurate.
- Add new getLongNamesModified() into CommandOption
  which is populated if name modifier is used.
- Add more hints in CommandExecution for modified
  option names.
- This should bring annotation, legacy annotation
  and programmatic commands up to date.
- Fixes #777
2023-06-19 12:30:29 +01:00