terraform/internal/command
Daniel Schmidt 4b34066cf2 add error to Pre and PostDiff hook
We need this information for stacks to forward the error to the progress
stream as stacks expects everything that reports itself starting to e.g. plan
to also finish either in an error or with success.
2026-01-30 16:13:59 +01:00
..
arguments PSS : Add fs and inmem state storage implementations to the builtin simplev6 provider, update grpcwrap package, use PSS implementation in E2E test (#37790) 2025-11-11 15:30:50 +00:00
cliconfig Apply some new go collection features (#36818) 2025-04-02 16:20:16 +02:00
clistate command/workdir: Model the "backend state" file format 2024-03-08 17:21:53 -08:00
e2etest test: Add E2E test coverage for inspecting a plan file using the terraform show command (#38020) 2025-12-19 14:53:07 +00:00
format standardize on marks.Has 2025-10-09 14:48:13 +02:00
jsonchecks fix: support ephemeral resources in jsonchecks (#37893) 2025-11-19 09:51:09 +01:00
jsonconfig fix: move parsing action reference expressions into terraform (#37458) 2025-08-22 11:23:55 -04:00
jsonformat tf query: ready list blocks for beta (#37619) 2025-09-17 12:29:04 +02:00
jsonfunction lang: stabilise templatestring func experiment (#35224) 2024-05-28 16:50:25 +01:00
jsonplan actions: preserve unknown metadata in the json plan (#37611) 2025-09-15 14:21:14 +02:00
jsonprovider PSS: Add tests showing provider commands being used with PSS (#37959) 2025-12-17 19:44:36 +00:00
jsonstate standardize on marks.Has 2025-10-09 14:48:13 +02:00
junit testing: include file-level errors in JUnit skipped elements (#37806) 2025-10-30 09:17:08 +00:00
testdata Allow functions in test mock blocks (#37883) 2026-01-22 09:42:21 +01:00
testing terraform test: enable deferrals in Terraform Test with the specified flag (#37370) 2025-07-30 11:03:41 +02:00
views add error to Pre and PostDiff hook 2026-01-30 16:13:59 +01:00
webbrowser Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
workdir PSS: Allow pluggable state store configuration to be stored in a plan file (#37956) 2025-12-11 11:41:36 +00:00
apply.go PSS: Allow pluggable state store configuration to be read from a plan file (#37957) 2025-12-18 11:49:31 +00:00
apply_destroy_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
apply_test.go PSS: Allow pluggable state store configuration to be read from a plan file (#37957) 2025-12-18 11:49:31 +00:00
autocomplete.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
autocomplete_test.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
cli_ui.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
cli_ui_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
cloud.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
cloud_test.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
command.go Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716) 2025-03-20 16:52:00 +00:00
command_test.go PSS: Refactor Plan struct to reference Backend and StateStore via pointers, update calling code (#37946) 2025-11-28 16:12:46 +00:00
console.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
console_interactive.go terraform console: Multi-line entry support 2024-03-13 09:00:02 -07:00
console_interactive_solaris.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
console_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
experimental_test.go Fix experimental gating of PSS feature (#37526) 2025-08-29 14:23:35 +01:00
flag_kv.go move all command args from command/init to args/init 2024-04-17 12:26:23 -04:00
flag_kv_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
fmt.go Support tfquery files in terraform fmt (#37347) 2025-07-23 16:52:19 +02:00
fmt_test.go Support tfquery files in terraform fmt (#37347) 2025-07-23 16:52:19 +02:00
get.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
get_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
graph.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
graph_test.go PSS: Refactor Plan struct to reference Backend and StateStore via pointers, update calling code (#37946) 2025-11-28 16:12:46 +00:00
helper.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
hook_module_install.go allow slashes in git url parameters 2024-08-09 13:54:13 -04:00
import.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
import_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
init.go init: skip dependencies declared in development override 2025-11-12 09:23:17 +01:00
init_run.go PSS: Ensure experimental backend codepath is isolated + gated correctly (#37868) 2025-11-05 09:40:48 +00:00
init_run_experiment.go PSS: Implement unsetting of a state store (#37875) 2025-11-19 13:43:46 +00:00
init_test.go test: Add and update some init command tests, linting and code comment changes (#38056) 2026-01-20 09:14:26 +00:00
login.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
login_test.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
logout.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
logout_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
meta.go PSS: Allow pluggable state store configuration to be stored in a plan file (#37956) 2025-12-11 11:41:36 +00:00
meta_backend.go PSS: Allow use of pluggable state stores with -backend=false during init commands (#38066) 2026-01-20 09:12:52 +00:00
meta_backend_errors.go PSS: Implement unsetting of a state store (#37875) 2025-11-19 13:43:46 +00:00
meta_backend_migrate.go Fix nil pointer dereference in backend state migration (#38028) 2026-01-14 11:41:23 +00:00
meta_backend_migrate_test.go Inject appname to backend migration prompts 2024-04-23 16:12:59 -04:00
meta_backend_test.go PSS: Allow pluggable state store configuration to be read from a plan file (#37957) 2025-12-18 11:49:31 +00:00
meta_config.go tf query: ready list blocks for beta (#37619) 2025-09-17 12:29:04 +02:00
meta_dependencies.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
meta_dependencies_test.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
meta_new.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
meta_providers.go add additional warning that providers won't be downloaded 2025-11-12 09:23:17 +01:00
meta_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
meta_vars.go Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716) 2025-03-20 16:52:00 +00:00
metadata_command.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
metadata_functions.go internal/command: Avoid ignoring ephemeralasnull function (#35651) 2024-09-04 10:25:11 +01:00
metadata_functions_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
modules.go Add human view for modules cmd 2024-11-21 12:54:24 -05:00
modules_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
output.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
output_test.go PSS: Add tests showing output and show commands being used with PSS (#37894) 2025-12-17 18:11:48 +00:00
plan.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
plan_test.go PSS: Allow pluggable state store configuration to be stored in a plan file (#37956) 2025-12-11 11:41:36 +00:00
plugins.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_lock.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_lock_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
providers.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
providers_lock.go providers lock: include test files when loading configuration (#37851) 2025-11-17 08:33:25 +01:00
providers_lock_test.go providers lock: include test files when loading configuration (#37851) 2025-11-17 08:33:25 +01:00
providers_mirror.go update helptext and docs 2024-06-14 16:23:36 -04:00
providers_mirror_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
providers_schema.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
providers_schema_test.go PSS: Add tests showing provider commands being used with PSS (#37959) 2025-12-17 19:44:36 +00:00
providers_test.go PSS: Add tests showing provider commands being used with PSS (#37959) 2025-12-17 19:44:36 +00:00
push.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
query.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
query_test.go remove id from generated config 2025-10-01 15:16:00 -04:00
refresh.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
refresh_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
show.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
show_test.go PSS: Add tests showing output and show commands being used with PSS (#37894) 2025-12-17 18:11:48 +00:00
stacks.go Use raw args in -help flag handling 2025-09-19 15:50:20 -04:00
stacks_test.go make hostname and token optional, read token from cli file 2025-05-12 17:10:40 -04:00
state_command.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
state_identities.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_identities_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_list.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_list_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_meta.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_mv.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_mv_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_pull.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_pull_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_push.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_push_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_replace_provider.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_replace_provider_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_rm.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
state_rm_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_show.go fix: Make state show command exit with code 1 if the stored state cannot be marshalled for rendering (#37933) 2025-11-24 15:49:47 +00:00
state_show_test.go PSS: Add tests showing state subcommands being used with PSS (#37891) 2025-12-09 17:24:38 +00:00
state_test.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
taint.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
taint_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
telemetry.go add missing copyright headers 2023-08-16 11:21:49 -07:00
test.go Fix typos and linguistic errors in documentation (#37770) 2025-10-14 10:38:27 +01:00
test_cleanup.go Implement controlling destroy functionality within Terraform Test (#37359) 2025-09-10 17:22:20 +02:00
test_test.go Allow functions in test mock blocks (#37883) 2026-01-22 09:42:21 +01:00
ui_input.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
ui_input_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
unlock.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
unlock_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
untaint.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
untaint_test.go Replace custom testCwd function with standard testing library (#37335) 2025-07-16 10:41:51 +00:00
validate.go query: add -query flag to validate command (#37671) 2025-10-01 11:33:52 +02:00
validate_test.go test: Add more test coverage of validate command's interaction with backend blocks (#37977) 2025-12-17 18:09:54 +00:00
version.go Update URLs from www.terraform.io to developer.hashicorp.com (#36792) 2025-04-01 09:37:12 +01:00
version_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
workspace_command.go PSS: Address edge case in workspace list when no state files/workspace artefacts exist (#38094) 2026-01-28 15:15:04 +00:00
workspace_command_test.go PSS: Address edge case in workspace list when no state files/workspace artefacts exist (#38094) 2026-01-28 15:15:04 +00:00
workspace_delete.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
workspace_list.go PSS: Address edge case in workspace list when no state files/workspace artefacts exist (#38094) 2026-01-28 15:15:04 +00:00
workspace_new.go PSS: Update the workspace new subcommand to work with PSS, add E2E and integration tests for using workspace commands with PSS. (#37855) 2025-11-19 12:50:43 +00:00
workspace_select.go PSS: Update how commands access backends, so both backend and state_store configuration can be used (#37569) 2025-11-03 17:57:20 +00:00
workspace_show.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00