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
gh cs
- Choose the only codespace if only one exists
#9039
Comments
@alondahari : Thanks for opening this suggestion! I could see this being a flag or even a configuration option you toggle, but I defer to our Codespaces team for consideration here. |
Thanks for the suggestion! We actually started moving in this direction a while back when we refactored to the I think the reason that we stopped short of doing that in all cases was a bit of back compat in the experience and not being too magical. That said, I like the idea of an |
Describe the feature or problem you’d like to solve
In the context of the
gh cs
subcommand, if I only have one active codespace it would be nice if it would be selected automatically. This is for any subcommand that requires choosing an existing codespace from a list, such asgh cs ssh
.I usually only have one codespace and I want to skip selecting it when I’m connecting.
Proposed solution
Potentially add it as a flag if we don't want to change the existing, skip the codespace selection step if only one exists and the command requires selecting an existing codespace.
This seems pretty trivial, and you could easily alias a workaround, but that would be a nice native behaviour imo. It could also help with scripting.
The text was updated successfully, but these errors were encountered: