File tree 1 file changed +12
-7
lines changed
spawnctl/lib/spawnctl/commands/new
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -15,30 +15,35 @@ defmodule SpawnCtl.Commands.New.Node do
15
15
name: "node" ,
16
16
description: "Generate a Spawn NodeJS project."
17
17
18
- @ default_opts % {
19
- actor_system: "spawn-system"
20
- }
21
-
22
18
@ vsn "1.4.3"
23
- @ main_sdk_version "1.4.2 "
19
+ @ main_sdk_version "1.4.3 "
24
20
@ template "nodejs"
25
21
22
+ @ default_opts % {
23
+ actor_system: "spawn-system" ,
24
+ allowed_template_versions: [
25
+ "v#{ @ vsn } " ,
26
+ "v1.4.2"
27
+ ]
28
+ }
29
+
26
30
option ( :actor_system , :string , "Spawn actor system." ,
27
31
alias: :s ,
28
32
default: @ default_opts . actor_system
29
33
)
30
34
31
35
option ( :template_version , :string , "Spawn CLI Language templates version." ,
32
36
alias: :t ,
33
- default: "v#{ @ vsn } "
37
+ default: "v#{ @ vsn } " ,
38
+ allowed_values: @ default_opts . allowed_template_versions
34
39
)
35
40
36
41
option ( :sdk_version , :string , "Spawn Node SDK version." ,
37
42
alias: :v ,
38
43
default: @ main_sdk_version ,
39
44
allowed_values: [
40
45
@ main_sdk_version ,
41
- "1.4.3 "
46
+ "1.4.2 "
42
47
]
43
48
)
44
49
You can’t perform that action at this time.
0 commit comments