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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add autocomplete for cluster set command #1695

Merged
merged 2 commits into from Nov 6, 2023

Conversation

omar711
Copy link
Contributor

@omar711 omar711 commented Nov 6, 2023

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):

@galenmarchetti galenmarchetti added this pull request to the merge queue Nov 6, 2023
@omar711
Copy link
Contributor Author

omar711 commented Nov 6, 2023

Update on testing: the local build at ./cli/cli/dist/cli_darwin_arm64/kurtosis will let you test autocomplete properly

Merged via the queue into main with commit d36164d Nov 6, 2023
48 checks passed
@galenmarchetti galenmarchetti deleted the omar/cluster-autocomplete branch November 6, 2023 16:13
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.85.4](0.85.3...0.85.4)
(2023-11-07)


### Features

* add autocomplete for cluster set command
([#1695](#1695))
([d36164d](d36164d))
* manage parameters and URL
([#1689](#1689))
([eafc056](eafc056))
* new em ui enclave logs
([#1696](#1696))
([788c7bc](788c7bc))
* print Made with Kurtosis at the end of a run
([#1687](#1687))
([a08b0b1](a08b0b1))


### Bug Fixes

* correct is_ci value in metrics from APIC
([#1697](#1697))
([9df62dd](9df62dd))
* kurtosis run considers every nonexistent path to be a URL and fails
with a suspicious error
([#1706](#1706))
([0f7809e](0f7809e)),
closes [#1705](#1705)
* return the correct yaml parsing error
([#1691](#1691))
([c6170ec](c6170ec))
* user/instance id values were flipped
([#1698](#1698))
([901069c](901069c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants