terraform/internal/command/arguments
Sarah French 694ed4a33d
Add machine-readable JSON output to the workspace list command (#38397)
* feat: Add `-json` flag to the `workspace list` command

* feat: Implement JSON view for `workspace list`, connect to -json flag, add tests defining new command output

* Add change file

* Address reviewer feedback
2026-04-20 11:36:24 +01:00
..
apply.go make copyrightfix 2026-02-17 13:56:34 +00:00
apply_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
console.go refactor console command to use arguments 2026-02-18 12:47:12 +01:00
console_test.go refactor console command to use arguments 2026-02-18 12:47:12 +01:00
default.go make copyrightfix 2026-02-17 13:56:34 +00:00
extended.go move vars handling into own file 2026-02-18 12:47:12 +01:00
flags.go make copyrightfix 2026-02-17 13:56:34 +00:00
get.go command: Add vars to get command (and refactor it) 2026-03-17 16:41:28 +01:00
get_test.go command: Add vars to get command (and refactor it) 2026-03-17 16:41:28 +01:00
graph.go command: Add vars to graph command 2026-03-17 16:41:28 +01:00
graph_test.go command: Add vars to graph command 2026-03-17 16:41:28 +01:00
import.go update copyright headers 2026-02-17 15:56:24 +01:00
import_test.go update copyright headers 2026-02-17 15:56:24 +01:00
init.go PSS: Remove automatic creation of the default workspace's state file during init (#38281) 2026-03-19 15:47:29 +00:00
init_test.go PSS: Remove automatic creation of the default workspace's state file during init (#38281) 2026-03-19 15:47:29 +00:00
modules.go command: Add vars to modules command 2026-03-17 16:41:28 +01:00
modules_test.go command: Add vars to modules command 2026-03-17 16:41:28 +01:00
output.go make copyrightfix 2026-02-17 13:56:34 +00:00
output_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
plan.go make copyrightfix 2026-02-17 13:56:34 +00:00
plan_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers.go command: Add vars to providers command 2026-03-17 16:41:28 +01:00
providers_lock.go command: Add vars to pvoiders lock command 2026-03-17 16:41:28 +01:00
providers_lock_test.go command: Add vars to pvoiders lock command 2026-03-17 16:41:28 +01:00
providers_mirror.go command: Add vars to providers mirror command 2026-03-17 16:41:28 +01:00
providers_mirror_test.go command: Add vars to providers mirror command 2026-03-17 16:41:28 +01:00
providers_schema.go command: Add vars to providers schema command 2026-03-17 16:41:28 +01:00
providers_schema_test.go command: Add vars to providers schema command 2026-03-17 16:41:28 +01:00
providers_test.go command: Add vars to providers command 2026-03-17 16:41:28 +01:00
query.go make copyrightfix 2026-02-17 13:56:34 +00:00
refresh.go make copyrightfix 2026-02-17 13:56:34 +00:00
refresh_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
show.go Fix import and show command 2026-03-04 11:45:59 +01:00
show_test.go Fix import and show command 2026-03-04 11:45:59 +01:00
state_list.go update copyright headers 2026-02-17 15:56:24 +01:00
state_list_test.go update copyright headers 2026-02-17 15:56:24 +01:00
state_mv.go command: Add vars to state mv command 2026-03-17 16:41:28 +01:00
state_mv_test.go command: Add vars to state mv command 2026-03-17 16:41:28 +01:00
state_pull.go command: Add vars to state pull command 2026-03-17 16:41:28 +01:00
state_pull_test.go command: Add vars to state pull command 2026-03-17 16:41:28 +01:00
state_push.go command: Add vars to state push command 2026-03-17 16:41:28 +01:00
state_push_test.go command: Add vars to state push command 2026-03-17 16:41:28 +01:00
state_replace_provider.go command: Add vars to state replace command 2026-03-17 16:41:28 +01:00
state_replace_provider_test.go command: Add vars to state replace command 2026-03-17 16:41:28 +01:00
state_rm.go command: Add vars to state rm command 2026-03-17 16:41:28 +01:00
state_rm_test.go command: Add vars to state rm command 2026-03-17 16:41:28 +01:00
state_show.go feat(cli): add -json flag for state show (#38341) 2026-04-14 09:33:23 -04:00
state_show_test.go feat(cli): add -json flag for state show (#38341) 2026-04-14 09:33:23 -04:00
taint.go command: Add vars to taint command 2026-03-17 16:41:28 +01:00
taint_test.go command: Add vars to taint command 2026-03-17 16:41:28 +01:00
test.go make copyrightfix 2026-02-17 13:56:34 +00:00
test_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
types.go make copyrightfix 2026-02-17 13:56:34 +00:00
untaint.go update copyright headers 2026-02-17 15:56:24 +01:00
untaint_test.go update copyright headers 2026-02-17 15:56:24 +01:00
validate.go command: Add vars to validate command 2026-03-17 16:41:28 +01:00
validate_test.go command: Add vars to validate command 2026-03-17 16:41:28 +01:00
vars.go refactor addVarsFromFile to use return value 2026-02-18 12:47:12 +01:00
view.go make copyrightfix 2026-02-17 13:56:34 +00:00
view_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace.go Add machine-readable JSON output to the workspace list command (#38397) 2026-04-20 11:36:24 +01:00
workspace_test.go Add machine-readable JSON output to the workspace list command (#38397) 2026-04-20 11:36:24 +01:00