-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[gp-cli] Add alias for forward and await in ports #10538
Conversation
/werft run 👍 started the job as gitpod-build-main-fork.39 |
@CuriousCorrelation The build is failing because of a linting issue with Go. Could you run Remember to squash your next commit, you can use: |
One suggestion is, can we switch the alias order, i.e. |
I think it's a better solution |
Do we really need |
@andreafalzetti I bookmarked wrong pipeline and thought "everything looks good 🤓, must be something else...". Really sorry for the confusion! It should be fixed now. |
I'd be happy to work on changing the ergonomics once there's a consensus. |
How can we name it?
Agree - we could always iterate and keep contributions flowing IMHO, but I also appriciate that if we don't track it, we won't do it in the future, so let's do it in this PR 👍 |
I ten to call it |
For visibility: Internal consensus was |
It seems that agreed changes, are:
What do you think, @CuriousCorrelation? Is this something you feel confortable moving forward? |
@andreafalzetti These changes do seem better ergonomically and I'd love to work on them. I'll let you know if I have any questions or if there are any major changes. Just to be extra sure, the new commands will be gp ports expose <port> and gp ports await <port> each with aliases gp await-port <port> and gp forward-port <port> respectively (hidden with deprecation warning). Does that sound alright? |
That sounds right @CuriousCorrelation! 🧡 |
`await-port` is now deprecated. New command is `gp ports await`. `await-port` is now an alias for backwards compatibility.
`forward-port` is now deprecated. New cmd is `gp ports expose`. `forward-port` is now an alias for `ports expose` for backwards compatibility.
Latest commit is up and repo is updated. These are the changes Commands❯ gp --help
Command line interface for Gitpod
Usage:
gp [command]
Available Commands:
env Controls user-defined, persistent environment variables.
help Help about any command
init Create a Gitpod configuration for this project.
open Opens a file in Gitpod
ports Interact with workspace ports.
preview Opens a URL in the IDE's preview
snapshot Take a snapshot of the current workspace
stop Stop current workspace
sync-await Awaits an event triggered using gp sync-done
sync-done Notifies the corresponding gp sync-await calls that this event has happened
tasks Interact with workspace tasks
url Prints the URL of this workspace
version Prints the version of the CLI
Flags:
-h, --help help for gp
Use "gp [command] --help" for more information about a command. Ports now mentions
|
Just dropping by to offer a big thank you for making this contribution @CuriousCorrelation 🙏 It's looking great, and thank you for responding to feedback so quickly! 🚀 |
@loujaybee My pleasure. Thank you and the team for maintaining an excellent service that I love to use daily! |
/werft run 👍 started the job as gitpod-build-main-fork.40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great, thanks a lot @CuriousCorrelation 🙏
We really appreciate your contribution 🙌
We will deploy this soon (I hope tomorrow) :)
@CuriousCorrelation I've released this PR to prod 🚀 |
gitpod-io/gitpod#10538 PR moved `await-port` functionality to `ports await` and `forward-port`, now renamed `expose`, moved to `ports expose` Previously: - `gp forward-port <port>` - `gp await-port <port>` Now: - `gp ports expose <port>` - `gp ports await <port>`
gitpod-io/gitpod#10538 PR moved `await-port` functionality to `ports await` and `forward-port`, now renamed `expose`, moved to `ports expose` Previously: - `gp forward-port <port>` - `gp await-port <port>` Now: - `gp ports expose <port>` - `gp ports await <port>`
gitpod-io/gitpod#10538 PR moved `await-port` functionality to `ports await` and `forward-port`, now renamed `expose`, moved to `ports expose` Previously: - `gp forward-port <port>` - `gp await-port <port>` Now: - `gp ports expose <port>` - `gp ports await <port>`
gitpod-io/gitpod#10538 Signed-off-by: Takuya Noguchi <[email protected]>
gitpod-io/gitpod#10538 Signed-off-by: Takuya Noguchi <[email protected]>
gitpod-io/gitpod#10538 Signed-off-by: Takuya Noguchi <[email protected]>
Description
This PR aliases
forward-port
andawait-port
command toports
namespace asports forward
,ports await
Related Issue(s)
Closes #10449
How to test
Both commands should be similar except for their
Usage
messageforward-port
await-port
Release Notes
Documentation
Does this PR require updates to the documentation at www.gitpod.io/docs?
Please create a docs issue: https://github.com/gitpod-io/website/issues/new?labels=documentation&template=DOCS-NEW-FEATURE.yml&title=%5BDocs+-+New+Feature%5D%3A+%3Cyour+feature+name+here%3E
Paste the link to the docs issue below this comment
https://github.com/gitpod-io/website/issues/2173#issue-1260679472