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/template_list.go
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@
25
25
package cmd
26
26
27
27
import (
28
-
"github.com/spf13/cobra"
29
28
"github.com/AliceO2Group/Control/coconut/control"
29
+
"github.com/spf13/cobra"
30
30
)
31
31
32
32
// templateListCmd represents the template list command
@@ -35,10 +35,30 @@ var templateListCmd = &cobra.Command{
35
35
Aliases: []string{"list", "ls", "l"},
36
36
Short: "list available workflow templates",
37
37
Long: `The template list command shows a list of available workflow templates.
38
-
These workflow templates can then be loaded to create an environment.`,
38
+
These workflow templates can then be loaded to create an environment.
39
+
40
+
`+"`coconut templ list` "+`can be called with
41
+
1) a combination of the `+"`--repo` "+`, `+"`--revision` "+`, `+"`--all-branches` "+`, `+"`--all-tags`"+`flags, or with
42
+
2) an argument in the form of [repo-pattern]@[revision-pattern], where the patterns are globbing.`,
43
+
Example:
44
+
` * `+"`coconut templ list`"+` lists templates from the HEAD of master for all git repositories
45
+
* `+"`coconut templ list *AliceO2Group*`"+` lists all templates coming from the HEAD of master of git repositories that match the pattern *AliceO2Group*
46
+
* `+"`coconut templ list *@v*`"+` lists templates coming from revisions matching the `+"`v*`"+`pattern for all git repositories
47
+
* `+"`coconut templ list --repo=*AliceO2Group*`"+` lists all templates coming from the HEAD of master of git repositories that match the pattern *AliceO2Group*
48
+
* `+"`coconut templ list --revision=dev*`"+` lists templates coming from revisions matching the `+"`dev*`"+`pattern for all git repositories
49
+
* `+"`coconut templ list --repo=*gitlab.cern.ch* --revision=master`"+` lists templates for revisions `+"`master`"+`for git repositories matching `+"`*gitlab.cern.ch*`"+`
50
+
* `+"`coconut templ list --all-branches`"+` lists templates from all branches for all git repositories
51
+
* `+"`coconut templ list --repo=*github.com* --all-tags`"+` lists templates from all tags for git repositories which match the *github.com* pattern
52
+
* `+"`coconut templ list --revision=5c7f1c1fded1b87243998579ed876c8035a08377 `"+` lists templates from the commit corresponding to the hash for all git repositories`,
0 commit comments