fixed config variable

Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
This commit is contained in:
Andreas Ulm 2019-05-09 10:59:17 +02:00
parent 17054a3bcf
commit 46e59ee72e

View File

@ -44,7 +44,7 @@ var OutputFlag = cli.StringFlag{
var ConfigFlag = cli.StringFlag{ var ConfigFlag = cli.StringFlag{
Name: "config, c", Name: "config, c",
Usage: "Specify tea.yml path", Usage: "Specify tea.yml path",
Destination: &outputValue, Destination: &configValue,
} }
// DefaultFlags defines flags that should be available // DefaultFlags defines flags that should be available
@ -69,7 +69,7 @@ var RepoDefaultFlags = append([]cli.Flag{
func initCommand() (*Login, string, string) { func initCommand() (*Login, string, string) {
err := loadConfig(yamlConfigPath) err := loadConfig(yamlConfigPath)
if err != nil { if err != nil {
log.Fatal("load config file failed", yamlConfigPath) log.Fatal("load config file failed ", yamlConfigPath)
} }
var login *Login var login *Login