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
{{ message }}
This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/start.go
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import (
15
15
)
16
16
17
17
varmodestring
18
+
varskip []string
18
19
19
20
// startCmd represents the start command
20
21
varstartCmd=&cobra.Command{
@@ -40,9 +41,13 @@ var startCmd = &cobra.Command{
40
41
bail(err)
41
42
42
43
apps:=make([]domain.App, 0, 1)
43
-
apps, err=resolver.Add(apps, app)
44
+
apps, err=resolver.Add(apps, app, skip)
44
45
bail(err)
45
46
47
+
iflen(apps) ==0 {
48
+
bail(fmt.Errorf("There are no apps to start. Consider checking %s/devon.conf.yaml to figure out what's going on.", app.SourceDir))
49
+
}
50
+
46
51
ifviper.IsSet("verbose") {
47
52
fmt.Println("Devon will start these apps:")
48
53
@@ -84,6 +89,7 @@ func init() {
84
89
rootCmd.AddCommand(startCmd)
85
90
86
91
startCmd.PersistentFlags().StringVarP(&mode, "mode", "m", "development", "The mode to run in, e.g. 'development' or 'dependency'. Default: development")
92
+
startCmd.PersistentFlags().StringSliceVarP(&skip, "skip", "s", []string{}, "Names of any apps you don't want to start. Can be specified multiple times.")
0 commit comments