terraform/internal/command/views
Daniel Banck 2b9d25c7fd
Add terraform query subcommand (TF-25494) (#37174)
* WIP

* Reuse plan command for query CLI

* Basic CLI output

* Only fail a list request on error

* poc: store query results in separate field

* WIP: odd mixture between JSONs

* Fix list references

* Separate JSON rendering

The structured JSON now only logs a status on which list query is
currently running. The new jsonlist package can marshal the query fields
of a plan.

* Remove matcher

* Store results in an extra struct

* Structured list result logging

* Move list result output into hooks

* Add help text and additional flag

* Disable query runs with the cloud backend for now

* Review feedback
2025-07-02 15:06:25 +02:00
..
json Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
testdata Update URLs from www.terraform.io to developer.hashicorp.com (#36792) 2025-04-01 09:37:12 +01:00
apply.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
apply_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
cloud.go Revert "Merge pull request #35929 from bschaatsbergen/b/fix-retry-messages-in-cloud-backend-json" 2024-11-13 18:22:26 -07:00
hook_count.go Refactor terraform.Hook to use a resource-identifying wrapper struct 2024-02-27 19:28:20 -08:00
hook_count_test.go Refactor terraform.Hook to use a resource-identifying wrapper struct 2024-02-27 19:28:20 -08:00
hook_json.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
hook_json_test.go command/views: Fix flaky hook tests (#36104) 2024-12-09 10:23:55 +00:00
hook_ui.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
hook_ui_test.go Include identity in import apply UI output (#37044) 2025-05-16 15:24:24 +02:00
init.go Update URLs from www.terraform.io to developer.hashicorp.com (#36792) 2025-04-01 09:37:12 +01:00
init_test.go making json data more useful for client consumption 2024-04-17 12:26:23 -04:00
json_view.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
json_view_test.go fixing tests internal/command/init, view and argumento 2024-04-17 12:26:23 -04:00
modules.go cmd/modules: Ensure modules are sorted by reference key (#36268) 2025-01-06 15:25:24 +00:00
operation.go Include list resource schemas in provider json schemas (TF-25497) (#37163) 2025-06-30 10:59:19 +02:00
operation_test.go send resource identities to provider calls 2025-03-12 09:18:55 +01:00
output.go Remove handling of ephemeral root outputs (#35809) 2024-10-03 18:10:30 +01:00
output_test.go Remove handling of ephemeral root outputs (#35809) 2024-10-03 18:10:30 +01:00
plan.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plan_test.go Rename schema.Block to Body (#36629) 2025-03-04 16:33:43 +01:00
query.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
query_operation.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
refresh.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
refresh_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
show.go Include list resource schemas in provider json schemas (TF-25497) (#37163) 2025-06-30 10:59:19 +02:00
show_test.go Rename schema.Block to Body (#36629) 2025-03-04 16:33:43 +01:00
state_locker.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
test.go Include list resource schemas in provider json schemas (TF-25497) (#37163) 2025-06-30 10:59:19 +02:00
test_test.go Rename schema.Block to Body (#36629) 2025-03-04 16:33:43 +01:00
validate.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
validate_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
view.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00