-
Notifications
You must be signed in to change notification settings - Fork 113
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 terraform workspace commands #56
Conversation
@@ -0,0 +1 @@ | |||
this file is used to hold this directory in git |
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.
directory presence is used by the Terraform CLI for workspaces
This comment has been minimized.
This comment has been minimized.
return errors.New(stderr) | ||
case workspaceDoesNotExistRegexp.MatchString(stderr): | ||
submatches := workspaceDoesNotExistRegexp.FindStringSubmatch(stderr) | ||
if len(submatches) == 2 { |
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.
This feels odd to me but I have no context.
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.
Yeah I think at some point we will need to overhaul this from a switch
to something a bit more sophisticated.
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.
I could use named groups and make it a bit cleaner possibly, but not without a lot of extra code for this single case.
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.
fix typos then approved
No description provided.