Exemplo n.º 1
0
func main() {
	setupSignals()
	cliApp := setupCli()
	log.Infof("Command to execute: %s", strings.Join(os.Args, " "))
	term.Section()
	cliApp.Run(os.Args)
	term.PrintSection()
}
Exemplo n.º 2
0
func selectBaseUrl() string {
	url := defaultBaseUrl
	configBaseUrl = config.Read().ApiBaseUrl
	if configBaseUrl != "" {
		url = configBaseUrl
	}
	if optionBaseUrl != "" {
		url = optionBaseUrl
	}
	log.Infof("Using base url: %s", url)
	return url
}