forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_command.go
25 lines (20 loc) · 894 Bytes
/
config_command.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
package v2
import (
"os"
"code.cloudfoundry.org/cli/cf/cmd"
"code.cloudfoundry.org/cli/commands"
)
type ConfigCommand struct {
AsyncTimeout int `long:"async-timeout" description:"Timeout for async HTTP requests"`
Color string `long:"color" description:"Enable or disable color"`
Locale string `long:"locale" description:"Set default locale. If LOCALE is 'CLEAR', previous locale is deleted."`
Trace string `long:"trace" description:"Trace HTTP requests"`
usage interface{} `usage:"CF_NAME config [--async-timeout TIMEOUT_IN_MINUTES] [--trace (true | false | path/to/file)] [--color (true | false)] [--locale (LOCALE | CLEAR)]"`
}
func (_ ConfigCommand) Setup(config commands.Config, ui commands.UI) error {
return nil
}
func (_ ConfigCommand) Execute(args []string) error {
cmd.Main(os.Getenv("CF_TRACE"), os.Args)
return nil
}