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
Copy file name to clipboardExpand all lines: coconut/cmd/environment_create.go
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ import (
34
34
35
35
// environmentCreateCmd represents the environment list command
36
36
varenvironmentCreateCmd=&cobra.Command{
37
-
Use: "create",
37
+
Use: "create",
38
38
Aliases: []string{"new", "c", "n"},
39
-
Short: "create a new environment",
39
+
Short: "create a new environment",
40
40
Long: fmt.Sprintf(`The environment create command requests from %s the
41
41
creation of a new environment.
42
42
@@ -46,21 +46,21 @@ A valid workflow template (sometimes called simply "workflow" for brevity) must
46
46
47
47
Workflows and tasks are managed with a git based configuration system, so the workflow template may be provided simply by name or with repository and branch/tag/hash constraints.
48
48
Examples:
49
-
* `+"`coconut env create -w myworkflow`"+` - loads workflow `+"`myworkflow`"+` from default configuration repository at HEAD of master branch
50
-
* `+"`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow`"+` - loads a workflow from a specific git repository, HEAD of master branch
51
-
* `+"`coconut env create -w myworkflow@rev`"+` - loads a workflow from default repository, on branch, tag or revision `+"`rev`"+`
52
-
* `+"`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow@rev`"+` - loads a workflow from a specific git repository, on branch, tag or revision `+"`rev`"+`
53
-
54
-
For more information on the %s workflow configuration system, see documentation for the `+"`coconut repository`"+` command.`, product.PRETTY_SHORTNAME, product.PRETTY_SHORTNAME),
55
-
Run: control.WrapCall(control.CreateEnvironment),
49
+
* `+"`coconut env create -w myworkflow`"+` - loads workflow `+"`myworkflow`"+` from default configuration repository at HEAD of master branch
50
+
* `+"`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow`"+` - loads a workflow from a specific git repository, HEAD of master branch
51
+
* `+"`coconut env create -w myworkflow@rev`"+` - loads a workflow from default repository, on branch, tag or revision `+"`rev`"+`
52
+
* `+"`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow@rev`"+` - loads a workflow from a specific git repository, on branch, tag or revision `+"`rev`"+`
56
53
54
+
For more information on the %s workflow configuration system, see documentation for the `+"`coconut repository`"+` command.`, product.PRETTY_SHORTNAME, product.PRETTY_SHORTNAME),
55
+
Run: control.WrapCall(control.CreateEnvironment),
57
56
}
58
57
59
58
funcinit() {
60
59
environmentCmd.AddCommand(environmentCreateCmd)
61
60
61
+
environmentCreateCmd.Flags().StringP("configuration", "c", "", "high-level configuration payload to be loaded for the new environment")
0 commit comments