You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.Flags().StringVarP(&c.Directory, "directory", "d", "", "Base directory for finding tests")
66
-
cmd.Flags().StringVarP(&c.File, "file", "f", "", "Smart Test file to run")
67
-
cmd.Flags().StringVar(&c.Cluster, "cluster", "", "Cluster where to run tests")
68
-
cmd.Flags().StringVar(&c.Sandbox, "sandbox", "", "Sandbox where to run tests")
69
-
cmd.Flags().StringVar(&c.RouteGroup, "route-group", "", "Route group where to run tests")
70
-
cmd.Flags().BoolVar(&c.Publish, "publish", false, "Publish test results")
76
+
cmd.Flags().StringVarP(&c.Directory, "directory", "d", "", "base directory for finding tests")
77
+
cmd.Flags().StringVarP(&c.File, "file", "f", "", "smart test file to run")
78
+
cmd.Flags().StringVar(&c.Cluster, "cluster", "", "cluster where to run tests")
79
+
cmd.Flags().StringVar(&c.Sandbox, "sandbox", "", "sandbox where to run tests")
80
+
cmd.Flags().StringVar(&c.RouteGroup, "route-group", "", "route group where to run tests")
81
+
cmd.Flags().BoolVar(&c.Publish, "publish", false, "publish test results")
71
82
cmd.Flags().DurationVar(&c.Timeout, "timeout", 0, "timeout when waiting for the tests to complete, if 0 is specified, no timeout will be applied (default 0)")
72
83
cmd.Flags().BoolVar(&c.NoWait, "no-wait", false, "do not wait until the tests are completed")
73
84
74
85
c.Labels=make(map[string]string)
75
-
cmd.Flags().Var(c.Labels, "set-label", "set a label in form key:value for all test executions in the run")
86
+
cmd.Flags().Var(&c.Labels, "set-label", "set a label in form key=value for all test executions in the run (can be specified multiple times)")
76
87
}
77
88
78
89
typeSmartTestExecstruct {
@@ -92,18 +103,20 @@ type SmartTestExecList struct {
cmd.Flags().StringVar(&c.TestName, "test-name", "", "Filter test executions by test name")
100
-
cmd.Flags().StringVar(&c.RunID, "run-id", "", "Filter test executions by run ID")
101
-
cmd.Flags().StringVar(&c.Sandbox, "sandbox", "", "Filter test executions by sandbox name")
102
-
cmd.Flags().StringVar(&c.Repo, "repo", "", "Filter test executions by repository name")
103
-
cmd.Flags().StringVar(&c.RepoPath, "repo-path", "", "Filter test executions by repository path")
104
-
cmd.Flags().StringVar(&c.RepoCommitSHA, "repo-commit-sha", "", "Filter test executions by repository commit SHA")
105
-
cmd.Flags().StringVar(&c.ExecutionPhase, "phase", "", "Filter test executions by phase (one of 'pending', 'in_progress', 'succeeded', 'canceled' or 'failed')")
106
-
cmd.Flags().StringArrayVar(&c.Labels, "label", []string{}, "Filter test executions by label in the format key:value (can be specified multiple times)")
110
+
cmd.Flags().StringVar(&c.TestName, "test-name", "", "filter test executions by test name")
111
+
cmd.Flags().StringVar(&c.RunID, "run-id", "", "filter test executions by run ID")
112
+
cmd.Flags().StringVar(&c.Sandbox, "sandbox", "", "filter test executions by sandbox name")
113
+
cmd.Flags().StringVar(&c.Repo, "repo", "", "filter test executions by repository name")
114
+
cmd.Flags().StringVar(&c.RepoPath, "repo-path", "", "filter test executions by repository path")
115
+
cmd.Flags().StringVar(&c.RepoCommitSHA, "repo-commit-sha", "", "filter test executions by repository commit SHA")
116
+
cmd.Flags().StringVar(&c.ExecutionPhase, "phase", "", "filter test executions by phase (one of 'pending', 'in_progress', 'succeeded', 'canceled' or 'failed')")
117
+
118
+
c.Labels=make(map[string]string)
119
+
cmd.Flags().Var(&c.Labels, "label", "filter test executions by label in the format key=value (can be specified multiple times)")
107
120
}
108
121
109
122
typeSmartTestExecCancelstruct {
@@ -112,5 +125,5 @@ type SmartTestExecCancel struct {
0 commit comments