-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.go
executable file
·33 lines (29 loc) · 1.04 KB
/
run.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
package run
import (
cmdCancel "github.com/ungtb10d/cli/v2/pkg/cmd/run/cancel"
cmdDownload "github.com/ungtb10d/cli/v2/pkg/cmd/run/download"
cmdList "github.com/ungtb10d/cli/v2/pkg/cmd/run/list"
cmdRerun "github.com/ungtb10d/cli/v2/pkg/cmd/run/rerun"
cmdView "github.com/ungtb10d/cli/v2/pkg/cmd/run/view"
cmdWatch "github.com/ungtb10d/cli/v2/pkg/cmd/run/watch"
"github.com/ungtb10d/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdRun(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "run <command>",
Short: "View details about workflow runs",
Long: "List, view, and watch recent workflow runs from GitHub Actions.",
Annotations: map[string]string{
"IsActions": "true",
},
}
cmdutil.EnableRepoOverride(cmd, f)
cmd.AddCommand(cmdList.NewCmdList(f, nil))
cmd.AddCommand(cmdView.NewCmdView(f, nil))
cmd.AddCommand(cmdRerun.NewCmdRerun(f, nil))
cmd.AddCommand(cmdDownload.NewCmdDownload(f, nil))
cmd.AddCommand(cmdWatch.NewCmdWatch(f, nil))
cmd.AddCommand(cmdCancel.NewCmdCancel(f, nil))
return cmd
}