@@ -10,13 +10,14 @@ import (
10
10
//go:embed schema.cue
11
11
var task_schema string
12
12
13
- var task_chan cue.Value
14
- var task_send cue.Value
15
- var task_recv cue.Value
13
+ var task_exec cue.Value
14
+ // var task_chan cue.Value
15
+ // var task_send cue.Value
16
+ // var task_recv cue.Value
16
17
var task_watch cue.Value
17
18
18
19
func init_schemas (ctx * cue.Context ) {
19
- if task_chan .Exists () {
20
+ if task_exec .Exists () {
20
21
return
21
22
}
22
23
@@ -26,19 +27,24 @@ func init_schemas(ctx *cue.Context) {
26
27
panic ("should not have a schema error" )
27
28
}
28
29
29
- task_chan = val .LookupPath (cue .ParsePath ("Chan" ))
30
- if ! task_chan .Exists () {
31
- panic ("missing flow/tasks/csp.Chan schema" )
32
- }
33
- task_send = val .LookupPath (cue .ParsePath ("Send" ))
34
- if ! task_send .Exists () {
35
- panic ("missing flow/tasks/csp.Send schema" )
36
- }
37
- task_recv = val .LookupPath (cue .ParsePath ("Recv" ))
38
- if ! task_recv .Exists () {
39
- panic ("missing flow/tasks/csp.Recv schema" )
30
+ task_exec = val .LookupPath (cue .ParsePath ("Exec" ))
31
+ if ! task_exec .Exists () {
32
+ panic ("missing flow/tasks/os.Exec schema" )
40
33
}
41
34
35
+ // task_chan = val.LookupPath(cue.ParsePath("Chan"))
36
+ // if !task_chan.Exists() {
37
+ // panic("missing flow/tasks/csp.Chan schema")
38
+ // }
39
+ // task_send = val.LookupPath(cue.ParsePath("Send"))
40
+ // if !task_send.Exists() {
41
+ // panic("missing flow/tasks/csp.Send schema")
42
+ // }
43
+ // task_recv = val.LookupPath(cue.ParsePath("Recv"))
44
+ // if !task_recv.Exists() {
45
+ // panic("missing flow/tasks/csp.Recv schema")
46
+ // }
47
+
42
48
task_watch = val .LookupPath (cue .ParsePath ("Watch" ))
43
49
if ! task_watch .Exists () {
44
50
panic ("missing flow/tasks/fs.Watch schema" )
0 commit comments