lib

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug *log.Logger
	Warn  *log.Logger
	Info  *log.Logger
)

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(appCtx model.AppContext) *Engine

func (*Engine) AddResolver

func (o *Engine) AddResolver(r resolver.Resolver)

func (*Engine) ContextFromConfigDir

func (o *Engine) ContextFromConfigDir(dir string) (*model.ResolvedDependency, error)

func (*Engine) Execute added in v0.1.6

func (o *Engine) Execute(rdep *model.ResolvedDependency, args []string) int

func (*Engine) ExecuteWithIO added in v0.1.6

func (o *Engine) ExecuteWithIO(
	rdep *model.ResolvedDependency,
	args []string,
	stdout io.Writer,
	stderr io.Writer,
	stdin io.Reader,
) int

type PathFound

type PathFound struct {
	Root string
	File string
}

PathFound struct returned by FindFileUpwards

func FindFileUpwards

func FindFileUpwards(
	subPathToFind []string,
	givenRoot *string,
) (*PathFound, error)

FindFileUpwards Find a file within a specified directory. If not found it walks up the directory tree until the file is found or no more parent directories exists. subPathToFind Path to be found as an array

func (*PathFound) String

func (p *PathFound) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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