no to 'zrok quiet'

This commit is contained in:
Michael Quigley 2022-09-01 14:40:05 -04:00
parent 9e26229ff0
commit 3afd2f06f3
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ func (self *httpBackendCommand) run(_ *cobra.Command, args []string) {
p := widgets.NewParagraph()
p.Border = true
p.Title = " access your zrok service: "
p.Title = " access your zrok service "
p.Text = fmt.Sprintf("%v%v", strings.Repeat(" ", (((w-12)-len(resp.Payload.ProxyEndpoint))/2)-1), resp.Payload.ProxyEndpoint)
p.TextStyle = ui.Style{Fg: ui.ColorWhite}
p.PaddingTop = 1
@ -175,8 +175,8 @@ func (self *httpBackendCommand) run(_ *cobra.Command, args []string) {
}
}
} else {
logrus.Infof("access your zrok service: %v", resp.Payload.ProxyEndpoint)
for {
logrus.Infof("access your zrok quiet: %v", resp.Payload.ProxyEndpoint)
time.Sleep(30 * time.Second)
}
}

View File

@ -17,8 +17,8 @@ func init() {
pfxlog.GlobalInit(logrus.InfoLevel, pfxlog.DefaultOptions().SetTrimPrefix("github.com/openziti-test-kitchen/"))
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose logging")
apiEndpointDefault := os.Getenv("ZROK_API_ENDPOINT")
if apiEndpoint == "" {
apiEndpoint = "api.zrok.io"
if apiEndpointDefault == "" {
apiEndpointDefault = "api.zrok.io"
}
rootCmd.PersistentFlags().StringVarP(&apiEndpoint, "endpoint", "e", apiEndpointDefault, "zrok API endpoint address")
rootCmd.AddCommand(httpCmd)