mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
slicker
This commit is contained in:
parent
2bcad71037
commit
340534f06a
@ -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)
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user