Add option "-json" in help text of apply command and plan command. (#2340)

Signed-off-by: Guozhang Wu <30565051+zcxsythenew@users.noreply.github.com>
This commit is contained in:
zcxsythenew 2025-01-08 20:58:32 +08:00 committed by GitHub
parent 8139ae6005
commit ec20752054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -392,6 +392,10 @@ Options:
-show-sensitive If specified, sensitive values will be displayed.
-json Produce output in a machine-readable JSON format,
suitable for use in text editor integrations and
other automated systems. Always disables color.
If you don't provide a saved plan file then this command will also accept
all of the plan-customization options accepted by the tofu plan command.
For more information on those options, run:

View File

@ -310,6 +310,10 @@ Other Options:
information.
-show-sensitive If specified, sensitive values will be displayed.
-json Produce output in a machine-readable JSON format,
suitable for use in text editor integrations and
other automated systems. Always disables color.
`
return strings.TrimSpace(helpText)
}

View File

@ -236,6 +236,10 @@ Options:
a file. If "terraform.tfvars" or any ".auto.tfvars"
files are present, they will be automatically loaded.
-json Produce output in a machine-readable JSON format,
suitable for use in text editor integrations and
other automated systems. Always disables color.
-state, state-out, and -backup are legacy options supported for the local
backend only. For more information, see the local backend's documentation.
`