workflows

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdWorkflowsDisable = cli.Command{
	Name:        "disable",
	Usage:       "Disable a workflow",
	Description: "Disable a workflow in the repository",
	ArgsUsage:   "<workflow-id>",
	Action:      runWorkflowsDisable,
	Flags: append([]cli.Flag{
		&cli.BoolFlag{
			Name:    "confirm",
			Aliases: []string{"y"},
			Usage:   "confirm disable without prompting",
		},
	}, flags.AllDefaultFlags...),
}

CmdWorkflowsDisable represents a sub command to disable a workflow

View Source
var CmdWorkflowsDispatch = cli.Command{
	Name:        "dispatch",
	Aliases:     []string{"trigger", "run"},
	Usage:       "Dispatch a workflow run",
	Description: "Trigger a workflow_dispatch event for a workflow",
	ArgsUsage:   "<workflow-id>",
	Action:      runWorkflowsDispatch,
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:    "ref",
			Aliases: []string{"r"},
			Usage:   "branch or tag to dispatch on (default: current branch)",
		},
		&cli.StringSliceFlag{
			Name:    "input",
			Aliases: []string{"i"},
			Usage:   "workflow input in key=value format (can be specified multiple times)",
		},
		&cli.BoolFlag{
			Name:    "follow",
			Aliases: []string{"f"},
			Usage:   "follow log output after dispatching",
		},
	}, flags.AllDefaultFlags...),
}

CmdWorkflowsDispatch represents a sub command to dispatch a workflow

View Source
var CmdWorkflowsEnable = cli.Command{
	Name:        "enable",
	Usage:       "Enable a workflow",
	Description: "Enable a disabled workflow in the repository",
	ArgsUsage:   "<workflow-id>",
	Action:      runWorkflowsEnable,
	Flags:       flags.AllDefaultFlags,
}

CmdWorkflowsEnable represents a sub command to enable a workflow

View Source
var CmdWorkflowsList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List repository workflows",
	Description: "List workflows in the repository with their status",
	Action:      RunWorkflowsList,
	Flags:       flags.AllDefaultFlags,
}

CmdWorkflowsList represents a sub command to list workflows

View Source
var CmdWorkflowsView = cli.Command{
	Name:        "view",
	Aliases:     []string{"show", "get"},
	Usage:       "View workflow details",
	Description: "View details of a specific workflow",
	ArgsUsage:   "<workflow-id>",
	Action:      runWorkflowsView,
	Flags:       flags.AllDefaultFlags,
}

CmdWorkflowsView represents a sub command to view workflow details

Functions

func RunWorkflowsList

func RunWorkflowsList(ctx stdctx.Context, cmd *cli.Command) error

RunWorkflowsList lists workflows in the repository using the workflow API

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL