cli/pkg/cmd/workflow/workflow.go
Nate Smith 8480381d13
workflow list (#3245)
* add gh workflow list

* review feedback
2021-03-16 16:12:27 -05:00

23 lines
617 B
Go

package workflow
import (
cmdList "github.com/cli/cli/pkg/cmd/workflow/list"
"github.com/cli/cli/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdWorkflow(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "workflow <command>",
Short: "View details about GitHub Actions workflows",
Hidden: true,
Long: "List, view, and run workflows in GitHub Actions.",
// TODO i'd like to have all the actions commands sorted into their own zone which i think will
// require a new annotation
}
cmdutil.EnableRepoOverride(cmd, f)
cmd.AddCommand(cmdList.NewCmdList(f, nil))
return cmd
}