diff --git a/cmd/zrok/disable.go b/cmd/zrok/disable.go index 27722ccb..944abcd5 100644 --- a/cmd/zrok/disable.go +++ b/cmd/zrok/disable.go @@ -1,11 +1,11 @@ package main import ( + "fmt" httptransport "github.com/go-openapi/runtime/client" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/identity" "github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/zrokdir" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -49,5 +49,5 @@ func (cmd *disableCommand) run(_ *cobra.Command, args []string) { if err := zrokdir.Delete(); err != nil { panic(err) } - logrus.Infof("environment disabled") + fmt.Printf("zrok environment '%v' disabled for '%v'\n", env.ZitiIdentityId, env.ZrokToken) } diff --git a/cmd/zrok/enable.go b/cmd/zrok/enable.go index 64e97de2..70835de7 100644 --- a/cmd/zrok/enable.go +++ b/cmd/zrok/enable.go @@ -8,7 +8,6 @@ import ( "github.com/openziti-test-kitchen/zrok/zrokdir" "github.com/pkg/errors" "github.com/shirou/gopsutil/v3/host" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" user2 "os/user" ) @@ -75,7 +74,8 @@ func (cmd *enableCommand) run(_ *cobra.Command, args []string) { if err := zrokdir.WriteZitiIdentity("environment", resp.Payload.Cfg); err != nil { panic(err) } - logrus.Infof("enabled, identity = '%v'", resp.Payload.Identity) + + fmt.Printf("zrok environment '%v' enabled for '%v'\n", resp.Payload.Identity, token) } func getHost() (string, string, error) {