Skip to content

Completion command for bash #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

jvalkeal
Copy link
Contributor

@jvalkeal jvalkeal commented Jan 7, 2022

  • 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 Add support for bash completion #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 spring-projects#343
@jvalkeal jvalkeal merged commit 668ddb4 into spring-projects:main Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for bash completion
1 participant