Merge pull request #25127 from minamijoyo/add-yes-to-0.13upgrade-help

Add `-yes` flag to 0.13upgrade help message
This commit is contained in:
Alisdair McDiarmid 2020-06-04 08:44:22 -04:00 committed by GitHub
commit 9b73e68ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -689,6 +689,16 @@ Usage: terraform 0.13upgrade [module-dir]
Updates module configuration files to add provider source attributes and
merge multiple required_providers blocks into one.
By default, 0.13upgrade rewrites the files in the current working directory.
However, a path to a different directory can be provided. The command will
prompt for confirmation interactively unless the -yes option is given.
Options:
-yes Skip the initial introduction messages and interactive
confirmation. This can be used to run this command in
batch from a script.
`
return strings.TrimSpace(helpText)
}