cmd/config.go
changeset 113 2e411da68fd3
parent 110 57843255fd1a
child 114 590c9dd7328e
equal deleted inserted replaced
112:58d30ab47543 113:2e411da68fd3
    88 		cfile := viper.ConfigFileUsed()
    88 		cfile := viper.ConfigFileUsed()
    89 		if cfile == "" {
    89 		if cfile == "" {
    90 			cfile = defaultConfigFile
    90 			cfile = defaultConfigFile
    91 		}
    91 		}
    92 		errPrint("You can copy the following lines into a configuration file.")
    92 		errPrint("You can copy the following lines into a configuration file.")
    93 		errPrint("E.g. %s -i INSTANCE -L USERNAME -P PASS config dump > %s\n", AppName, cfile)
    93 		errPrint("E.g. %s -i INSTANCE -L USERNAME -P PASS config dump > %s", AppName, cfile)
       
    94 		errPrint(" or  %s -i INSTANCE oauth2 > %s\n", AppName, cfile)
    94 		pOptions := printer.Options{"template": configurationTemplate}
    95 		pOptions := printer.Options{"template": configurationTemplate}
    95 		p, err = printer.NewPrinterTemplate(pOptions)
    96 		p, err = printer.NewPrinterTemplate(pOptions)
    96 	} else {
    97 	} else {
    97 		p, err = getPrinter()
    98 		p, err = getPrinter()
    98 	}
    99 	}