31 lines
905 B
Go
31 lines
905 B
Go
package run
|
|
|
|
import (
|
|
cmdDownload "github.com/cli/cli/pkg/cmd/run/download"
|
|
cmdList "github.com/cli/cli/pkg/cmd/run/list"
|
|
cmdRerun "github.com/cli/cli/pkg/cmd/run/rerun"
|
|
cmdView "github.com/cli/cli/pkg/cmd/run/view"
|
|
cmdWatch "github.com/cli/cli/pkg/cmd/run/watch"
|
|
"github.com/cli/cli/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))
|
|
|
|
return cmd
|
|
}
|