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

[completions] autocomplete on state #3155

Merged
merged 1 commit into from
Jul 12, 2023
Merged

[completions] autocomplete on state #3155

merged 1 commit into from
Jul 12, 2023

Conversation

sharder996
Copy link
Contributor

If an instance contains a string which is used for an instance state, bash completions can suggest the instance in invalid situations. eg. multipass stop <tab> will suggest an instance named Running-Rabbit even if it's stopped because the name contains the string Running.

Copy link
Collaborator

@ricab ricab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, thanks for the separate PR!

bors r+

bors bot added a commit that referenced this pull request Jul 11, 2023
3155: [completions] autocomplete on state r=ricab a=sharder996

If an instance contains a string which is used for an instance state, bash completions can suggest the instance in invalid situations. eg. `multipass stop <tab>` will suggest an instance named `Running-Rabbit` even if it's stopped because the name contains the string `Running`.

Co-authored-by: sharder996 <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jul 11, 2023

Build failed:

@ricab
Copy link
Collaborator

ricab commented Jul 12, 2023

This succeeded in https://github.com/canonical/multipass/actions/runs/5520560546 so merging manually.

@ricab ricab merged commit 82495d0 into main Jul 12, 2023
@bors bors bot deleted the filter-instances-by-state branch July 12, 2023 12:21
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.

2 participants