Update tap.go, tapRunner.go, and 3 more files...

This commit is contained in:
RamiBerm
2021-07-11 13:56:40 +03:00
parent 97798cb5b7
commit 65ba0952b4
5 changed files with 26 additions and 16 deletions

View File

@@ -4,15 +4,24 @@ import (
"github.com/spf13/cobra"
)
type MizuViewOptions struct {
GuiPort uint16
}
var mizuViewOptions = &MizuViewOptions{}
var viewCmd = &cobra.Command{
Use: "view",
Short: "Open GUI in browser",
RunE: func(cmd *cobra.Command, args []string) error {
runMizuView()
runMizuView(mizuViewOptions)
return nil
},
}
func init() {
rootCmd.AddCommand(viewCmd)
viewCmd.Flags().Uint16VarP(&mizuViewOptions.GuiPort, "gui-port", "p", 8899, "Provide a custom port for the web interface webserver")
}