You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to solve this with a workaround as suggested in the abovementioned SO post, specifically by configuring a custom ShellRunner that decorates the given ShellRunner-implementation and simply filtering the args passed to the run -Method of the decorated ShellRunner-implementation.
However, I think it should be possible to filter args automatically by utilising the CommandCatalog, passing only those args to the shell that match a command or an option registered in the CommandCatalog.
Any thoughts on that idea by the maintainers? I could probably provide a PR.
Context: I am developing a spring shell application. I want to be able to pass Spring
ConfigurationProperties
via the command line to the application.Problem: The problem is that if I try to pass the
ConfigurationProperties
via the command line e.g.:Spring Boot correctly parses
--flag1=value1 --flag2=value2
as external configuration but then Spring shell tries to interpretas a shell command which it is not.
Please provide a solution to this problem.
SO question: https://stackoverflow.com/questions/77462680/how-to-tell-spring-shell-to-not-parse-command-line-arguments-as-shell-commands
The text was updated successfully, but these errors were encountered: