* 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
22 lines
517 B
Go
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
|
|
}
|