Closed
Description
Spring Boot Migrator has a scan
option where users enter an existing directory. At first glance PathInput
seemed a good fit, but almost immediately we saw it's hardcoded to exclude existing directories. And since checkPath
is private, it's not easy to adjust this behaviour.
How would you recommend we ask users to input an existing directory?
And is this something to contribute back here?
I could see a number of options:
- Make
checkPath
protected, with an override dropping the directory requirement. - Add a flag argument on whether to allow directories
- Add an argument to test/filter files for applicability
- Fully new
DirectoryInput
flow component - Stick with
@ShellOption
valueProvider - Nothing in spring-shell; users should implement their own component.
- Others?
Any input much appreciated. :)