mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 16:54:23 +01:00
no to 'zrok quiet'
This commit is contained in:
parent
9e26229ff0
commit
3afd2f06f3
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user