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
Once we're starting to get better support for spring-native resulting proper OS level commands it makes a lot of sense to have support to create completion scripts for shells. I've been looking how things are generated from a go side i.e. for bash as some are based on https://github.com/spf13/cobra which have support for bash, zsh, fish and PowerShell.
We could shamelessly copy how actual completion scripts are constructed(as that's the bread and butter) and make that to work with a bit of template magic around https://github.com/antlr/stringtemplate4 which seems to work nicely with native stuff. This all as a result of a quick experiment of making generic completion bash command.
The text was updated successfully, but these errors were encountered:
- Add basic support of defining a command `completion bash` which
outputs a generic bash script which can be used in a user environment.
- Idea for completion is copied from go's cobra library what comes for
a bash dance itself.
- Goes through command registry, builds a model for command structure
and uses antlr st4 for templating bash.
- Should give foundation to create other completions just like in cobra.
- Currently as we don't know a root-command in a generic way, option
`spring.shell.command.completion.root-command` is required user to set.
- Fixesspring-projects#343
- Add basic support of defining a command `completion bash` which
outputs a generic bash script which can be used in a user environment.
- Idea for completion is copied from go's cobra library what comes for
a bash dance itself.
- Goes through command registry, builds a model for command structure
and uses antlr st4 for templating bash.
- Should give foundation to create other completions just like in cobra.
- Currently as we don't know a root-command in a generic way, option
`spring.shell.command.completion.root-command` is required user to set.
- Fixes#343
Once we're starting to get better support for
spring-native
resulting proper OS level commands it makes a lot of sense to have support to create completion scripts for shells. I've been looking how things are generated from ago
side i.e. for bash as some are based on https://github.com/spf13/cobra which have support forbash
,zsh
,fish
andPowerShell
.We could shamelessly copy how actual completion scripts are constructed(as that's the bread and butter) and make that to work with a bit of template magic around https://github.com/antlr/stringtemplate4 which seems to work nicely with native stuff. This all as a result of a quick experiment of making generic
completion bash
command.The text was updated successfully, but these errors were encountered: