terraform/internal/command/arguments
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
..
apply.go diagnostics should not contain URLs 2025-02-28 13:02:43 -05:00
apply_test.go show deprecation warning if -state is used with plan, apply, refresh (#35660) 2024-09-05 10:55:37 +02:00
default.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
extended.go move all command args from command/init to args/init 2024-04-17 12:26:23 -04:00
flags.go move all command args from command/init to args/init 2024-04-17 12:26:23 -04:00
init.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
init_test.go fixing tests 2024-04-17 12:26:23 -04:00
modules.go Implement the modules command 2024-10-28 13:31:09 -04:00
modules_test.go Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456) 2025-02-19 13:59:29 +00:00
output.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
output_test.go Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456) 2025-02-19 13:59:29 +00:00
plan.go diagnostics should not contain URLs 2025-02-28 13:02:43 -05:00
plan_test.go show deprecation warning if -state is used with plan, apply, refresh (#35660) 2024-09-05 10:55:37 +02:00
query.go Add terraform query subcommand (TF-25494) (#37174) 2025-07-02 15:06:25 +02:00
refresh.go diagnostics should not contain URLs 2025-02-28 13:02:43 -05:00
refresh_test.go show deprecation warning if -state is used with plan, apply, refresh (#35660) 2024-09-05 10:55:37 +02:00
show.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
show_test.go Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456) 2025-02-19 13:59:29 +00:00
test.go Don't set default parallelism for cloud runs (#36441) 2025-02-06 08:54:08 +01:00
test_test.go Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456) 2025-02-19 13:59:29 +00:00
types.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
validate.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
validate_test.go Add testing helpers that allow comparing diagnostics, refactor existing tests to use them. (#36456) 2025-02-19 13:59:29 +00:00
view.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
view_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00