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

add service and a way to differentiate between gcloud groups and commands #53

Merged
merged 2 commits into from
May 13, 2019

Conversation

matzika
Copy link
Contributor

@matzika matzika commented May 13, 2019

This PR adds the service field to be configurable on the gcloud command. It also splits the gcloud commands that respond to group or plain gcloud command because the syntax is different. I wasn't sure how I could write tests for this so any advice/suggestion welcome.

For example:

This is a group gcloud command:
gcloud app versions delete <service> <version>

whereas this is a plain gcloud command:
gcloud app deploy <yml file> --version <version>

The group type doesn't support deploying with a yml file.

Here are the gcloud docs for reference: https://cloud.google.com/sdk/gcloud/reference/app/

Copy link
Contributor

@jprobinson jprobinson left a comment

Choose a reason for hiding this comment

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

🛥

main.go Outdated Show resolved Hide resolved
@matzika
Copy link
Contributor Author

matzika commented May 13, 2019

fyi I don't think I have rights to merge this to master so if you 👍 someone with admin rights should do it.

@jprobinson jprobinson merged commit e4b99d4 into nytimes:master May 13, 2019
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.

3 participants