Commit Graph

28 Commits (5d289cc1a259ee7ea8d2668a0bf89d58bffe02b3)

Author SHA1 Message Date
Sarah French 6554bda227
refactor: Update `workspace select` and `new` subcommands to use the arguments package for parsing arguments and flags (#38430)
4 weeks ago
Sarah French dd35f66105
fix: warnings against using `terraform env list` are shown in JSON format when the -json flag is present (#38469)
4 weeks ago
Sarah French e24abdf6ff
refactor: Update `workspace select` and `delete` subcommands to use the arguments package for parsing arguments and flags (#38429)
1 month ago
Sarah French 650fd346aa
refactor: Separate concerns in mock provider sources logic, handle callbacks using `t.Cleanup` (#38446)
1 month ago
Sarah French 694ed4a33d
Add machine-readable JSON output to the `workspace list` command (#38397)
1 month ago
Sarah French c975e0cd78
Refactor `workspace list` human output to use a views-like architecture, so adding JSON output is possible without breaking changes (#38392)
1 month ago
Sarah French ae14dc3ea8
refactor: Stop workspace new, show, and select commands using `ModulePath` method to determine the working directory (#38358)
2 months ago
Sarah French 2dbb7d9c05
PSS: Remove automatic creation of the default workspace's state file during `init` (#38281)
2 months ago
Daniel Schmidt 93f4c1b9b4 remove copied default value
3 months ago
Radek Simko 0fe906fa8c make copyrightfix
3 months ago
Sarah French 8e59c3296a
PSS: Address edge case in `workspace list` when no state files/workspace artefacts exist (#38094)
4 months ago
Sarah French ac3e32b62b
test: Add test asserting deprecation warnings are present when legacy `env` subcommands are used (#38091)
4 months ago
Sarah French 4420c4dcc0
PSS: Update the `workspace new` subcommand to work with PSS, add E2E and integration tests for using `workspace` commands with PSS. (#37855)
6 months ago
Sarah French 8503c45013
Update `backend.Backend`'s `StateMgr` method to return diagnostics instead of primitive errors (#37496)
9 months ago
Sarah French 7199fbd2bb
Update use of `testChdir` to standard library's `t.Chdir`, remove `testChdir` function from codebase (#37334)
11 months ago
Sarah French 15840b3eae
Replace use of `defer` with `t.Cleanup` in majority of `command` package tests, update `testChdir` to work with t.Cleanup (#37326)
11 months ago
Sarah French 38e2ed42c4
Make the `workspace` command explicitly protect the default workspace, instead of relying on backend implementations (#37256)
11 months ago
Sarah French 3617b909c1
Make `workspace delete` command reject empty string arguments (#37275)
11 months ago
Sarah French 9212a2efdd
Make Terraform reject empty strings as invalid workspace names (#37267)
11 months ago
Martin Atkins 66bec6c3c7 command: TestWorkspace_deleteWithState uses modern state format
2 years ago
Jamie Finnigan 05b0bdac99
adopt hashicorp/cli fork of mitchellh/cli (#34429)
2 years ago
hashicorp-copywrite[bot] 53c34ff49c
Update copyright file headers to BUSL-1.1
3 years ago
hashicorp-copywrite[bot] 325d18262e [COMPLIANCE] Add Copyright and License Headers
3 years ago
Brittan DeYoung 5932540be3 New Terraform Workspace select flag:
4 years ago
Eng Zer Jun fedd315275
test: use `T.TempDir` to create temporary test directory (#30803)
4 years ago
Martin Atkins bee7403f3e command/workspace_delete: Allow deleting a workspace with empty husks
5 years ago
Martin Atkins f40800b3a4 Move states/ to internal/states/
5 years ago
Martin Atkins ffe056bacb Move command/ to internal/command/
5 years ago