Merge pull request #2414 from TimeIncOSS/no-color-for-subcommands

Add -no-color option for subcommands
This commit is contained in:
Paul Hinze 2015-06-23 15:43:37 -05:00
commit 3f2119c6e7
11 changed files with 23 additions and 1 deletions

View File

@ -77,6 +77,8 @@ Options:
-update=false If true, modules already downloaded will be checked
for updates and updated if necessary.
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -103,6 +103,9 @@ Options:
-verbose Generate a verbose, "worst-case" graph, with all nodes
for potential operations in place.
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -149,6 +149,8 @@ Options:
-backend-config="k=v" Specifies configuration for the remote storage
backend. This can be specified multiple times.
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -351,6 +351,7 @@ func (m *Meta) process(args []string, vars bool) []string {
for i, v := range args {
if v == "-no-color" {
m.color = false
m.Color = false
args = append(args[:i], args[i+1:]...)
break
}

View File

@ -94,6 +94,8 @@ Options:
-state=path Path to the state file to read. Defaults to
"terraform.tfstate".
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -189,7 +189,6 @@ Options:
-var-file=foo Set variables in the Terraform configuration from
a file. If "terraform.tfvars" is present, it will be
automatically loaded if this flag is not specified.
`
return strings.TrimSpace(helpText)
}

View File

@ -221,6 +221,8 @@ Options:
-vcs=true If true (default), push will upload only files
comitted to your VCS, if detected.
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -42,6 +42,10 @@ Usage: terraform remote <subcommand> [options]
Configure remote state storage with Terraform.
Options:
-no-color If specified, output won't contain any color.
Available subcommands:
config Configure the remote storage settings.

View File

@ -368,6 +368,8 @@ Options:
-state=path Path to read state. Defaults to "terraform.tfstate"
unless remote state is enabled.
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -74,6 +74,9 @@ Usage: terraform pull [options]
Refreshes the cached state file from the remote server.
Options:
-no-color If specified, output won't contain any color.
`
return strings.TrimSpace(helpText)
}

View File

@ -81,6 +81,8 @@ Usage: terraform push [options]
Options:
-no-color If specified, output won't contain any color.
-force Forces the upload of the local state, ignoring any
conflicts. This should be used carefully, as force pushing
can cause remote state information to be lost.