execution

package
v0.0.0-...-c9bbc4a Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(command *cobra.Command, args []string, executionParser Parser)

func GroupPath

func GroupPath(workspace config.Workspace, group config.Group) string

func NewWriter

func NewWriter() io.Writer

func ParseFlagsAndArgs

func ParseFlagsAndArgs(flags *pflag.FlagSet, args []string) []string

func RepositoryPath

func RepositoryPath(workspace config.Workspace, group config.Group, repository config.Repository) string

func RepositoryRemoteURL

func RepositoryRemoteURL(repository config.Repository, remoteName string) string

func ScriptDefinitions

func ScriptDefinitions() []config.ScriptDefinition

func Workspaces

func Workspaces() []config.Workspace

Types

type ExecExecution

type ExecExecution struct {
}

func (ExecExecution) CheckArgs

func (s ExecExecution) CheckArgs(command *cobra.Command, args []string) error

func (ExecExecution) Parse

func (s ExecExecution) Parse(
	command *cobra.Command, args []string,
	workspace config.Workspace, group config.Group, repository config.Repository) ([]Execution, error)

type Execution

type Execution struct {
	Command string
	Path    string
	Args    []string
	Skip    bool
}

type GitExecution

type GitExecution struct {
}

func (GitExecution) CheckArgs

func (s GitExecution) CheckArgs(command *cobra.Command, args []string) error

func (GitExecution) Parse

func (s GitExecution) Parse(
	command *cobra.Command, args []string,
	workspace config.Workspace, group config.Group, repository config.Repository) ([]Execution, error)

type ParseError

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

func (ParseError) Error

func (e ParseError) Error() string

type Parser

type Parser interface {
	CheckArgs(command *cobra.Command, args []string) error

	Parse(
		command *cobra.Command, args []string,
		workspace config.Workspace, group config.Group, repository config.Repository) ([]Execution, error)
}

Jump to

Keyboard shortcuts

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