handle

package
v0.0.0-...-117ffbb Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(options ...CommandOption) *Command

func (*Command) Description

func (c *Command) Description() string

func (*Command) Name

func (c *Command) Name() string

func (*Command) Run

func (c *Command) Run(ctx context.Context, args []string) error

type CommandOption

type CommandOption = func(*Command)

func WithConfigFiles

func WithConfigFiles(configFiles map[string]string) CommandOption

func WithCwd

func WithCwd(cwd string) CommandOption

func WithEnv

func WithEnv(env []string) CommandOption

func WithExpressionEngine

func WithExpressionEngine(engine expression.Engine) CommandOption

func WithFileSystem

func WithFileSystem(fs billy.Filesystem) CommandOption

func WithGlobalVars

func WithGlobalVars(globalVars map[string]any) CommandOption

func WithHooksConfig

func WithHooksConfig(config *configuration.HooksConfig) CommandOption

func WithOutput

func WithOutput(output io.Writer) CommandOption

func WithRepository

func WithRepository(repo internal.Repository) CommandOption

func WithWorkersCount

func WithWorkersCount(workersCount uint) CommandOption

Jump to

Keyboard shortcuts

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