-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add autocomplete for cluster set command (#1695)
## Description: `kurtosis cluster set` has no autocomplete; had a go at adding this. I wasn't 100% sure how to test, but what I did was use the `__complete` command then compare its output to the similar `context set` command: ``` √ kurtosis % ./cli/cli/scripts/launch-cli.sh __complete context set "" cloud-<hash> default :36 Completion ended with directive: ShellCompDirectiveNoFileComp, ShellCompDirectiveKeepOrder √ kurtosis % ./cli/cli/scripts/launch-cli.sh __complete cluster set "" docker k3d-k3s-default minikube :36 Completion ended with directive: ShellCompDirectiveNoFileComp, ShellCompDirectiveKeepOrder ``` I'm not sure how to test this for real, i.e. hitting tab in my shell to see autocomplete results. Maybe some config needed on my side? ## Is this change user facing? YES ## References (if applicable): <!-- Add relevant Github Issues, Discord threads, or other helpful information. --> --------- Co-authored-by: Omar <omar@omar>
- Loading branch information
Showing
2 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters