mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
guard against multiple 'zrok enable' (#190)
This commit is contained in:
parent
855f0c285c
commit
c633b13e00
@ -44,6 +44,10 @@ func (cmd *enableCommand) run(_ *cobra.Command, args []string) {
|
||||
}
|
||||
token := args[0]
|
||||
|
||||
if zrd.Env != nil {
|
||||
tui.Error(fmt.Sprintf("you already have an enabled environment, %v first before you %v", tui.Code.Render("zrok disable"), tui.Code.Render("zrok enable")), nil)
|
||||
}
|
||||
|
||||
hostName, hostDetail, err := getHost()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user