Alter the help message for test command to print the expected behaviour (#622)

This commit is contained in:
Mikhail Sliusarev 2023-10-03 10:17:26 +02:00 committed by GitHub
parent e0ecd2ebb3
commit 60a9db0a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 5 deletions

View File

@ -75,7 +75,9 @@ Options:
-no-color Disable text coloring in the output.
-test-directory=path Set the OpenTofu test directory, defaults to "tests".
-test-directory=path Set the OpenTofu test directory, defaults to "tests". When set, the
test command will search for test files in the current directory and
in the one specified by the flag.
`
return strings.TrimSpace(helpText)

View File

@ -1181,7 +1181,9 @@ Options:
See the documentation on configuring OpenTofu with
Terraform Cloud for more information.
-test-directory=path Set the OpenTofu test directory, defaults to "tests".
-test-directory=path Set the OpenTofu test directory, defaults to "tests". When set, the
test command will search for test files in the current directory and
in the one specified by the flag.
`
return strings.TrimSpace(helpText)

View File

@ -186,5 +186,7 @@ Usage: tofu [global options] providers [options] [DIR]
Options:
-test-directory=path Set the OpenTofu test directory, defaults to "tests".
-test-directory=path Set the OpenTofu test directory, defaults to "tests". When set, the
test command will search for test files in the current directory and
in the one specified by the flag.
`

View File

@ -61,7 +61,9 @@ Options:
-no-color If specified, output won't contain any color.
-test-directory=path Set the OpenTofu test directory, defaults to "tests".
-test-directory=path Set the OpenTofu test directory, defaults to "tests". When set, the
test command will search for test files in the current directory and
in the one specified by the flag.
-var 'foo=bar' Set a value for one of the input variables in the root
module of the configuration. Use this option more than

View File

@ -179,7 +179,9 @@ Options:
-no-tests If specified, OpenTofu will not validate test files.
-test-directory=path Set the OpenTofu test directory, defaults to "tests".
-test-directory=path Set the OpenTofu test directory, defaults to "tests". When set, the
test command will search for test files in the current directory and
in the one specified by the flag.
`
return strings.TrimSpace(helpText)
}