command

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(repo *git.Repository, opts BuilderOptions) *Builder

func (*Builder) BuildCommands

func (b *Builder) BuildCommands(params *JobParams) ([]string, []string, error)

BuildCommands returns the list of commands and the list of files touched by the command.

type BuilderOptions

type BuilderOptions struct {
	HookName    string
	GitArgs     []string
	ForceFiles  []string
	SourceDirs  []string
	Templates   map[string]string
	GlobMatcher string
	Force       bool
}

type JobParams

type JobParams struct {
	Name         string
	Run          string
	Root         string
	Runner       string
	Args         string
	Script       string
	FilesCmd     string
	FileTypes    []string
	Tags         []string
	Glob         []string
	ExcludeFiles []string
	Only         any
	Skip         any
}

type SkipError

type SkipError struct {
	// contains filtered or unexported fields
}

SkipError implements error interface but indicates that the execution needs to be skipped.

func (SkipError) Error

func (r SkipError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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