mirror of
https://github.com/openziti/zrok.git
synced 2025-06-21 02:07:44 +02:00
re-enable 'zrok http' chrome
This commit is contained in:
parent
d87ec1257a
commit
e32bca31b2
@ -1,8 +1,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
ui "github.com/gizak/termui/v3"
|
||||||
|
"github.com/gizak/termui/v3/widgets"
|
||||||
"github.com/go-openapi/runtime"
|
"github.com/go-openapi/runtime"
|
||||||
httptransport "github.com/go-openapi/runtime/client"
|
httptransport "github.com/go-openapi/runtime/client"
|
||||||
|
tb "github.com/nsf/termbox-go"
|
||||||
"github.com/openziti-test-kitchen/zrok/http"
|
"github.com/openziti-test-kitchen/zrok/http"
|
||||||
"github.com/openziti-test-kitchen/zrok/model"
|
"github.com/openziti-test-kitchen/zrok/model"
|
||||||
"github.com/openziti-test-kitchen/zrok/rest_client_zrok"
|
"github.com/openziti-test-kitchen/zrok/rest_client_zrok"
|
||||||
@ -41,13 +45,11 @@ func newHttpCommand() *httpCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *httpCommand) run(_ *cobra.Command, args []string) {
|
func (self *httpCommand) run(_ *cobra.Command, args []string) {
|
||||||
/*
|
|
||||||
if err := ui.Init(); err != nil {
|
if err := ui.Init(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
defer ui.Close()
|
defer ui.Close()
|
||||||
tb.SetInputMode(tb.InputEsc)
|
tb.SetInputMode(tb.InputEsc)
|
||||||
*/
|
|
||||||
|
|
||||||
idCfg, err := zrokdir.IdentityConfigFile()
|
idCfg, err := zrokdir.IdentityConfigFile()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -111,7 +113,6 @@ func (self *httpCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
/*
|
|
||||||
ui.Clear()
|
ui.Clear()
|
||||||
w, h := ui.TerminalDimensions()
|
w, h := ui.TerminalDimensions()
|
||||||
|
|
||||||
@ -171,10 +172,6 @@ func (self *httpCommand) run(_ *cobra.Command, args []string) {
|
|||||||
ui.Render(p, slg)
|
ui.Render(p, slg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
for {
|
|
||||||
time.Sleep(30 * time.Second)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func cleanupHttp(id string, cfg *http.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) {
|
func cleanupHttp(id string, cfg *http.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user