-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.go
35 lines (30 loc) · 835 Bytes
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package schema
type Schema struct {
Mint string `yaml:"mint"`
Name string `yaml:"name"`
Version string `yaml:"version"`
Source Source `yaml:"source"`
Targets []Target `yaml:"targets"`
}
type Command struct {
Command string `yaml:"command"`
Arguments int `yaml:"arguments"`
Description string `yaml:"description"`
}
type Target struct {
Name string `yaml:"name"`
Extension string `yaml:"extension"`
Commands []struct {
Command string `yaml:"command"`
Expression string `yaml:"expression"`
} `yaml:"commands"`
}
type Source struct {
AllowedRootCommands string `yaml:"allowedRootChildren"`
Commands []Command `yaml:"commands"`
Groups []Group `yaml:"groups"`
}
type Group struct {
Name string `yaml:"name"`
Commands []string `yaml:"commands"`
}