cli/pkg/cmd/job/job.go
Nate Smith 126b498e9f
Actions Support Phase 1 (#2923)
* Implement first round of support for GitHub Actions

This commit adds:

gh actions
gh run list
gh run view
gh job view

as part of our first round of actions support. These commands are
unlisted and considered in beta.

* review feedback

* tests for exit status on job view

* spinner tracks io itself

* review feedback

* fix PR matching

* enable pager for job log viewing

* add more colorf functions

* add AnnotationSymbol

* hide job, run

* do not add method to api.Client

* remove useless cargo coded copypasta
2021-03-16 13:59:34 -07:00

22 lines
517 B
Go

package job
import (
viewCmd "github.com/cli/cli/pkg/cmd/job/view"
"github.com/cli/cli/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdJob(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "job <command>",
Short: "Interact with the individual jobs of a workflow run",
Hidden: true,
Long: "List and view the jobs of a workflow run including full logs",
// TODO action annotation
}
cmdutil.EnableRepoOverride(cmd, f)
cmd.AddCommand(viewCmd.NewCmdView(f, nil))
return cmd
}