variables

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdVariablesDelete = cli.Command{
	Name:        "delete",
	Aliases:     []string{"remove", "rm"},
	Usage:       "Delete an action variable",
	Description: "Delete a variable used by repository actions",
	ArgsUsage:   "<variable-name>",
	Action:      runVariablesDelete,
	Flags: append([]cli.Flag{
		&cli.BoolFlag{
			Name:    "confirm",
			Aliases: []string{"y"},
			Usage:   "confirm deletion without prompting",
		},
	}, flags.AllDefaultFlags...),
}

CmdVariablesDelete represents a sub command to delete action variables

View Source
var CmdVariablesList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List action variables",
	Description: "List variables configured for repository actions",
	Action:      RunVariablesList,
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:  "name",
			Usage: "show specific variable by name",
		},
	}, flags.AllDefaultFlags...),
}

CmdVariablesList represents a sub command to list action variables

View Source
var CmdVariablesSet = cli.Command{
	Name:        "set",
	Aliases:     []string{"create", "update"},
	Usage:       "Set an action variable",
	Description: "Set a variable for use in repository actions and workflows",
	ArgsUsage:   "<variable-name> [variable-value]",
	Action:      runVariablesSet,
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:  "file",
			Usage: "read variable value from file",
		},
		&cli.BoolFlag{
			Name:  "stdin",
			Usage: "read variable value from stdin",
		},
	}, flags.AllDefaultFlags...),
}

CmdVariablesSet represents a sub command to set action variables

Functions

func RunVariablesList

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

RunVariablesList list action variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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