command: Consistency implement and document parallelism default of 10

References:
* f4da82a023/command/command.go (L41)
* b9d8e96e0c/terraform/context.go (L149-L155)
This commit is contained in:
Brian Flad 2019-03-06 09:25:36 -05:00
parent b9d8e96e0c
commit 20a814028d
No known key found for this signature in database
GPG Key ID: EC6252B42B012823
6 changed files with 14 additions and 4 deletions

View File

@ -38,7 +38,7 @@ func (c *ImportCommand) Run(args []string) int {
}
cmdFlags := c.Meta.extendedFlagSet("import")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism")
cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path")
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")

View File

@ -23,7 +23,7 @@ func (c *RefreshCommand) Run(args []string) int {
cmdFlags := c.Meta.extendedFlagSet("refresh")
cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism")
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")

View File

@ -38,7 +38,8 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - Disables output with coloring.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph).
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults to
10.
* `-refresh=true` - Update the state for each resource prior to planning
and applying. This has no effect if a plan file is given directly to

View File

@ -48,6 +48,10 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - If specified, output won't contain any color.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-provider=provider` - Specified provider to use for import. The value should be a provider
alias in the form `TYPE.ALIAS`, such as "aws.eu". This defaults to the normal
provider based on the prefix of the resource being imported. You usually

View File

@ -60,7 +60,8 @@ The command-line flags are all optional. The list of available flags are:
plans below.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph).
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-refresh=true` - Update the state prior to checking for differences.

View File

@ -37,6 +37,10 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - If specified, output won't contain any color.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-state=path` - Path to read and write the state file to. Defaults to "terraform.tfstate".
Ignored when [remote state](/docs/state/remote.html) is used.