You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/run.go
+10-41Lines changed: 10 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ import (
6
6
"io"
7
7
"os"
8
8
"os/exec"
9
-
"path/filepath"
10
9
"regexp"
11
10
"runtime"
12
11
@@ -20,19 +19,15 @@ import (
20
19
)
21
20
22
21
var (
23
-
runObservatoryPortstring
24
-
runInitialRoutestring
25
-
runOmitEmbedderbool
26
-
runOmitFlutterBundlebool
22
+
runObservatoryPortstring
23
+
runInitialRoutestring
27
24
)
28
25
29
26
funcinit() {
30
27
initCompileFlags(runCmd)
31
28
32
29
runCmd.Flags().StringVar(&runInitialRoute, "route", "", "Which route to load when running the app.")
33
30
runCmd.Flags().StringVarP(&runObservatoryPort, "observatory-port", "", "50300", "The observatory port used to connect hover to VM services (hot-reload/debug/..)")
34
-
runCmd.Flags().BoolVar(&runOmitFlutterBundle, "omit-flutter", false, "Don't (re)compile the current Flutter project, useful when only working with Golang code (plugin)")
35
-
runCmd.Flags().BoolVar(&runOmitEmbedder, "omit-embedder", false, "Don't (re)compile 'go-flutter' source code, useful when only working with Dart code")
36
31
rootCmd.AddCommand(runCmd)
37
32
}
38
33
@@ -43,49 +38,23 @@ var runCmd = &cobra.Command{
43
38
projectName:=pubspec.GetPubSpec().Name
44
39
assertHoverInitialized()
45
40
46
-
// ensure we have something to build
47
-
ifrunOmitEmbedder&&runOmitFlutterBundle {
48
-
log.Errorf("Flags omit-embedder and omit-flutter are not compatible.")
49
-
os.Exit(1)
50
-
}
51
-
52
41
// Can only run on host OS
53
42
targetOS:=runtime.GOOS
54
43
55
-
// forcefully enable --debug as it is not optional for 'hover run'
0 commit comments