runner

package
v0.0.0-...-b044765 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log log.Logger
)

Functions

func Base

func Base() string

func Execute

func Execute(c Context) int

func RealDir

func RealDir(path string) (string, error)

Types

type CompositeConfigSource

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

func (*CompositeConfigSource) GetArgs

func (this *CompositeConfigSource) GetArgs(runtime string) map[string]string

func (*CompositeConfigSource) GetExecutable

func (this *CompositeConfigSource) GetExecutable(runtime string) string

func (*CompositeConfigSource) GetRuntime

func (this *CompositeConfigSource) GetRuntime() string

func (*CompositeConfigSource) GetUse

func (this *CompositeConfigSource) GetUse() []string

func (*CompositeConfigSource) Locate

func (this *CompositeConfigSource) Locate(paths []string, entry string) string

func (*CompositeConfigSource) String

func (this *CompositeConfigSource) String() string

func (*CompositeConfigSource) Valid

func (this *CompositeConfigSource) Valid() bool

type ConfigSource

type ConfigSource interface {
	Valid() bool
	GetUse() []string
	GetRuntime() string
	GetExecutable(runtime string) string
	GetArgs(runtime string) map[string]string
	Locate([]string, string) string
	String() string
}

func NewCompositeConfigSource

func NewCompositeConfigSource(sources ...ConfigSource) ConfigSource

type Context

type Context struct {
	BaseDir  string
	Runner   string
	Tool     string
	Includes []string
	Args     []string
}

type EnvironmentConfigSource

type EnvironmentConfigSource struct{}

func NewEnvironmentConfigSource

func NewEnvironmentConfigSource() *EnvironmentConfigSource

func (*EnvironmentConfigSource) GetArgs

func (this *EnvironmentConfigSource) GetArgs(runtime string) map[string]string

func (*EnvironmentConfigSource) GetExecutable

func (this *EnvironmentConfigSource) GetExecutable(runtime string) string

func (*EnvironmentConfigSource) GetRuntime

func (this *EnvironmentConfigSource) GetRuntime() string

func (*EnvironmentConfigSource) GetUse

func (this *EnvironmentConfigSource) GetUse() []string

func (*EnvironmentConfigSource) Locate

func (this *EnvironmentConfigSource) Locate(paths []string, entry string) string

func (*EnvironmentConfigSource) String

func (this *EnvironmentConfigSource) String() string

func (*EnvironmentConfigSource) Valid

func (this *EnvironmentConfigSource) Valid() bool

type Executor

type Executor struct{}

type IniConfigSource

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

func IniConfigSourceFromFile

func IniConfigSourceFromFile(paths ...string) *IniConfigSource

func (*IniConfigSource) GetArgs

func (this *IniConfigSource) GetArgs(runtime string) map[string]string

func (*IniConfigSource) GetExecutable

func (this *IniConfigSource) GetExecutable(runtime string) string

func (*IniConfigSource) GetRuntime

func (this *IniConfigSource) GetRuntime() string

func (*IniConfigSource) GetUse

func (this *IniConfigSource) GetUse() []string

func (*IniConfigSource) Locate

func (this *IniConfigSource) Locate(paths []string, entry string) string

func (*IniConfigSource) String

func (this *IniConfigSource) String() string

func (*IniConfigSource) Valid

func (this *IniConfigSource) Valid() bool

Jump to

Keyboard shortcuts

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