doc: add -json flag doc for init and get command (#1460)

Signed-off-by: Syasusu <syasusu@163.com>
This commit is contained in:
Syasusu 2024-04-08 13:17:40 +02:00 committed by GitHub
parent 63ae75ea2b
commit 0b90cc3383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -21,3 +21,6 @@ The `get` command supports the following option:
checked for updates and the updates will be downloaded if present.
* `-no-color` - Disable text coloring in the output.
* `-json` Produce output in a machine-readable JSON format, suitable for use
in text editor integrations and other automated systems. Always disables color.

View File

@ -43,6 +43,9 @@ The following options apply to all of (or several of) the initialization steps:
* `-upgrade` Opt to upgrade modules and plugins as part of their respective
installation steps. See the sections below for more details.
* `-json` Produce output in a machine-readable JSON format, suitable for use
in text editor integrations and other automated systems. Always disables color.
## Copy a Source Module
By default, `tofu init` assumes that the working directory already