cmd

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PinnedVersion                     = VersionStyle("pinned")
	SemanticVersionFullyQualified     = VersionStyle("semver")
	SemanticVersionPartiallyQualified = VersionStyle("semver-partial")
	SemanticVersionMajorComponentOnly = VersionStyle("semver-major")
	BranchReference                   = VersionStyle("branch")
)
View Source
var ErrCurrentVersionUnmatched = errors.New("could not match version tag to a tag or release on github (might be tagged to a commit)")

Functions

func ListActions

func ListActions() error

func ListOutdatedActions

func ListOutdatedActions(ctx context.Context) error

func PinActions

func PinActions(ctx context.Context) error

func UpdateActions

func UpdateActions(ctx context.Context, pin bool) error

Types

type Action

type Action struct {
	FilePath string
	Node     yaml.Node
}

type ParsedAction

type ParsedAction struct {
	FilePath          string
	Node              yaml.Node
	Owner, Repo       string
	Subpath           string
	RawVersionString  string
	CurrentVersionTag *api.Tag
	LatestVersionTag  *api.Tag
	PinVersionTag     *api.Tag
	VersionStyle      VersionStyle
}

func (ParsedAction) ActionReference

func (p ParsedAction) ActionReference() string

ActionReference returns the formatted action reference (owner/repo/subpath).

func (ParsedAction) IsOutdated

func (p ParsedAction) IsOutdated() (bool, error)

func (ParsedAction) NewVersionString

func (p ParsedAction) NewVersionString() (string, error)

type VersionStyle

type VersionStyle string

Jump to

Keyboard shortcuts

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