Make history file path configurable

- UserConfigPathProvider interface to provid "user-level"
  config directory which can be used within a shell.
- New options which can be used to configure behaviour.
  spring.shell.history.enabled
  spring.shell.history.name
  spring.shell.config.location
  spring.shell.config.env
- Fixes #417
This commit is contained in:
Janne Valkealahti
2022-05-17 18:29:58 +01:00
committed by GitHub
parent f2d97ae2de
commit 6a1158dc12
10 changed files with 422 additions and 8 deletions

View File

@@ -2,6 +2,11 @@ spring:
main:
banner-mode: off
shell:
config:
env: SPRING_SHELL_SAMPLES_USER_HOME
location: "{userconfig}/spring-shell-samples"
history:
name: spring-shell-samples-history.log
command:
completion:
root-command: spring-shell-samples