Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use profile in completion #3815

Open
Codelax opened this issue May 17, 2024 · 0 comments
Open

Use profile in completion #3815

Codelax opened this issue May 17, 2024 · 0 comments
Assignees
Labels
autocomplete enhancement priority:medium Improvements that are not the main priority

Comments

@Codelax
Copy link
Member

Codelax commented May 17, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When completing commands and passing a specific profile, result does not take the profile into account

How I imagine scw could expose this functionality

Both examples are important as instance use a custom made autocompleteFunc while k8s rely on automatic completion.

  • scw instance server get -p myprofile <tab>
  • scw k8s cluster get -p myprofile <tab>

More

When triggering completion, completion commands get triggered.
An example with scw k8s cluster get -p myprofile <tab>:
scw autocomplete complete zsh 7 -- scw k8s cluster get -p myprofile.

It would work if profile was passed to the completion command:
scw autocomplete complete zsh 7 -p myprofile -- scw k8s cluster get -p myprofile

It could be solved in completion scripts or the autocomplete command could fetch the profile from given words

@remyleone remyleone added the priority:medium Improvements that are not the main priority label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocomplete enhancement priority:medium Improvements that are not the main priority
Projects
None yet
Development

No branches or pull requests

2 participants