View command - moving version check after proxy creation (#177)

This commit is contained in:
Igor Gov
2021-08-08 12:26:58 +03:00
committed by GitHub
parent 0595df8b87
commit d34dacbbe2
4 changed files with 30 additions and 24 deletions

View File

@@ -12,11 +12,6 @@ var viewCmd = &cobra.Command{
Short: "Open GUI in browser",
RunE: func(cmd *cobra.Command, args []string) error {
go mizu.ReportRun("view", mizu.Config.View)
if isCompatible, err := mizu.CheckVersionCompatibility(mizu.Config.View.GuiPort); err != nil {
return err
} else if !isCompatible {
return nil
}
runMizuView()
return nil
},