Commit de6f2df 1 parent 25015d4 commit de6f2df Copy full SHA for de6f2df
File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ func buildCLI() *cli.App {
111
111
& cli.StringSliceFlag {
112
112
Name : "service" ,
113
113
Aliases : []string {"svc" },
114
- Value : cli .NewStringSlice (temporal .Services ... ),
114
+ Value : cli .NewStringSlice (temporal .DefaultServices ... ),
115
115
Usage : "service(s) to start" ,
116
116
},
117
117
},
Original file line number Diff line number Diff line change @@ -43,16 +43,25 @@ type (
43
43
}
44
44
)
45
45
46
- // Services is the list of all valid temporal services as strings (needs to be strings to keep
47
- // ServerOptions interface stable)
48
46
var (
47
+ // Services is the set of all valid temporal services as strings (needs to be strings to
48
+ // keep ServerOptions interface stable)
49
49
Services = []string {
50
50
string (primitives .FrontendService ),
51
51
string (primitives .InternalFrontendService ),
52
52
string (primitives .HistoryService ),
53
53
string (primitives .MatchingService ),
54
54
string (primitives .WorkerService ),
55
55
}
56
+
57
+ // DefaultServices is the set of services to start by default if services are not given on
58
+ // the command line.
59
+ DefaultServices = []string {
60
+ string (primitives .FrontendService ),
61
+ string (primitives .HistoryService ),
62
+ string (primitives .MatchingService ),
63
+ string (primitives .WorkerService ),
64
+ }
56
65
)
57
66
58
67
// NewServer returns a new instance of server that serves one or many services.
You can’t perform that action at this time.
0 commit comments