func main() { setupSignals() cliApp := setupCli() log.Infof("Command to execute: %s", strings.Join(os.Args, " ")) term.Section() cliApp.Run(os.Args) term.PrintSection() }
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 }