forked from project-chip/alchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.go
More file actions
37 lines (31 loc) · 2.51 KB
/
cli.go
File metadata and controls
37 lines (31 loc) · 2.51 KB
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
36
37
//go:build !db && !github
package cmd
import (
"os"
"github.com/project-chip/alchemy/cmd/cli"
"github.com/project-chip/alchemy/cmd/dump"
)
var commands struct {
Format cli.Format `cmd:"" help:"disco ball Matter spec documents specified by the filename_pattern" group:"Spec Commands:"`
Disco cli.Disco `cmd:"" help:"disco ball Matter spec documents specified by the filename_pattern" group:"Spec Commands:"`
ZAP cli.ZAP `cmd:"" help:"transmute the Matter spec into ZAP templates, optionally filtered to the files specified by filename_pattern" group:"SDK Commands:"`
ZAPDiff cli.ZAPDiff `cmd:"" name:"zap-diff" help:"Compares two set of ZAP XMLs for any inconsistency." group:"SDK Commands:"`
MLE cli.MLE `cmd:"" help:"master list enforcer checks for inconsistencies between the master list and spec." group:"Spec Commands:"`
Conformance cli.Conformance `cmd:"" help:"test conformance values" group:"Spec Commands:"`
Dump dump.Command `cmd:"" hidden:"" help:"dump the parse tree of Matter documents specified by filename_pattern"`
DM cli.DataModel `cmd:"" help:"transmute the Matter spec into data model XML; optionally filtered to the files specified in filename_pattern" group:"SDK Commands:"`
TestPlan cli.TestPlan `cmd:"" name:"test-plan" aliases:"testplan" help:"create an initial test plan from the spec, optionally filtered to the files specified in filename_pattern" group:"Testing Commands:"`
TestScript cli.TestScript `cmd:"" name:"test-script" aliases:"testscript" help:"create shell python scripts from the spec, optionally filtered to the files specified by filename_pattern" group:"Testing Commands:"`
Provisional cli.Provisional `cmd:"" name:"provisional" hidden:"" group:"Provisional:"`
Validate cli.Validate `cmd:"" help:"validate the Matter specification object model" group:"Spec Commands:"`
Yaml2Python cli.Yaml2Python `cmd:"" name:"yaml-2-python" aliases:"yaml2python" help:"create a shell python script from a test YAML, optionally filtered to the files specified by filename_pattern" group:"Testing Commands:"`
Wordlist cli.Wordlist `cmd:"" hidden:"" name:"wordlist" help:"add words to wordlist.txt"`
ErrDiff cli.ErrDiff `cmd:"" name:"err-diff" hidden:"" help:"Checks for new errors caused by a PR in review."`
Version Version `cmd:"" hidden:"" name:"version" help:"display version number"`
globalFlags `embed:""`
}
func init() {
if len(os.Args) < 2 {
os.Args = append(os.Args, "--help")
}
}