forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.go
34 lines (28 loc) · 1.54 KB
/
template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package help
import . "github.com/cloudfoundry/cli/cf/i18n"
func GetHelpTemplate() string {
return `{{.Title "` + T("NAME:") + `"}}
{{.Name}} - {{.Usage}}
{{.Title "` + T("USAGE:") + `"}}
` + T("[environment variables]") + ` {{.Name}} ` + T("[global options] command [arguments...] [command options]") + `
{{.Title "` + T("VERSION:") + `"}}
{{.Version}}
{{range .Commands}}
{{.SubTitle .Name}}{{range .CommandSubGroups}}
{{range .}} {{.Name}} {{.Description}}
{{end}}{{end}}{{end}}
{{.Title "` + T("ENVIRONMENT VARIABLES:") + `"}}
CF_COLOR=false ` + T("Do not colorize output") + `
CF_HOME=path/to/dir/ ` + T("Override path to default config directory") + `
CF_PLUGIN_HOME=path/to/dir/ ` + T("Override path to default plugin config directory") + `
CF_STAGING_TIMEOUT=15 ` + T("Max wait time for buildpack staging, in minutes") + `
CF_STARTUP_TIMEOUT=5 ` + T("Max wait time for app instance startup, in minutes") + `
CF_TRACE=true ` + T("Print API request diagnostics to stdout") + `
CF_TRACE=path/to/trace.log ` + T("Append API request diagnostics to a log file") + `
https_proxy=proxy.example.com:8080 ` + T("Enable HTTP proxying for API requests") + `
{{.Title "` + T("GLOBAL OPTIONS:") + `"}}
--version, -v ` + T("Print the version") + `
--build, -b ` + T("Print the version of Go the CLI was built against") + `
--help, -h ` + T("Show help") + `
`
}