terraform/internal/command/arguments
Sarah French f494ff5540
Pull init command's Run method logic into separate method in new file, enable accessing experimental version of init logic via experiments and flags or ENVs (#37327)
* Pull `init` `Run` method into new method in a separate file, in preparation for adding experimental fork.

* Add license header

* Allow init args to be accessed before calling separate init run logic

* Add -enable-pss flag to the init command, to be used for accessing experimental init logic

* Fix- put call to `run` in else block!

* Make flag name more explicit

* Add an environment variable alternative to the CLI flag

* Make the panic text more user-friendly

* go fmt
2025-07-30 19:11:33 +01: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 Pull init command's Run method logic into separate method in new file, enable accessing experimental version of init logic via experiments and flags or ENVs (#37327) 2025-07-30 19:11:33 +01: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 terraform test: enable deferrals in Terraform Test with the specified flag (#37370) 2025-07-30 11:03:41 +02:00
test_test.go Test run Parallelism of 1 should not result in deadlock (#37292) 2025-07-07 09:44:32 +02: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