Skip to content

Add support for workspace list -json#587

Draft
SarahFrench wants to merge 4 commits into
mainfrom
add-workspace-list-json-support
Draft

Add support for workspace list -json#587
SarahFrench wants to merge 4 commits into
mainfrom
add-workspace-list-json-support

Conversation

@SarahFrench
Copy link
Copy Markdown
Member

Related Issue

Follows hashicorp/terraform#38397 and depends on hashicorp/terraform-json#198

This PR is blocked, pending a future release.

This PR is an incomplete WIP because E2E tests need a v1.16 binary available for download.

Description

This PR adds the ability to perform a workspace list -json command. The new JSON which is expected as part of TF v1.16.

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain. No

…reparation for adding support for JSON output

These changes follow patterns in other commands that support JSON output. Both human and JSON output converge on a single `build<command name here>Cmd` method that expects arguments to include flags specific to the type of output expected. Configuration that's common between both outputs, e.g use of reattached providers, is handled in this shared location.
@SarahFrench SarahFrench changed the title Add workspace list json support Add support for workspace list -json May 8, 2026
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.

1 participant