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 terraform workspace commands #56

Merged
merged 2 commits into from
Aug 29, 2020
Merged

Add terraform workspace commands #56

merged 2 commits into from
Aug 29, 2020

Conversation

paultyng
Copy link
Contributor

No description provided.

@@ -0,0 +1 @@
this file is used to hold this directory in git
Copy link
Contributor Author

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

@paultyng paultyng requested a review from kmoe August 19, 2020 17:48
@paultyng paultyng self-assigned this Aug 19, 2020
@paultyng paultyng added the enhancement New feature or request label Aug 19, 2020
@paultyng paultyng linked an issue Aug 24, 2020 that may be closed by this pull request
@paultyng paultyng changed the title Add WorkspaceList and WorkspaceSelect Add Workspace commands, other fixes Aug 26, 2020
@paultyng

This comment has been minimized.

return errors.New(stderr)
case workspaceDoesNotExistRegexp.MatchString(stderr):
submatches := workspaceDoesNotExistRegexp.FindStringSubmatch(stderr)
if len(submatches) == 2 {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Base automatically changed from cleanup to master August 29, 2020 15:00
tfexec/options.go Outdated Show resolved Hide resolved
tfexec/options.go Outdated Show resolved Hide resolved
Copy link
Contributor

@appilon appilon left a 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

@paultyng paultyng changed the title Add Workspace commands Add terraform workspace commands Aug 29, 2020
Co-authored-by: appilon <apilon@hashicorp.com>
@paultyng paultyng merged commit 7ad75ca into master Aug 29, 2020
@paultyng paultyng deleted the workspaces branch August 29, 2020 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: workspace support
2 participants