mixin

package
v0.10.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 8 Imported by: 31

Documentation

Index

Constants

View Source
const FileExt = ""

Variables

This section is empty.

Functions

func IsCoreMixinCommand

func IsCoreMixinCommand(value string) bool

Types

type InstallOptions

type InstallOptions struct {
	Name    string
	URL     string
	FeedURL string
	Version string
	// contains filtered or unexported fields
}

func (*InstallOptions) GetParsedFeedURL

func (o *InstallOptions) GetParsedFeedURL() url.URL

func (*InstallOptions) GetParsedURL

func (o *InstallOptions) GetParsedURL() url.URL

GetParsedURL returns a copy of of the parsed URL that is safe to modify.

func (*InstallOptions) Validate

func (o *InstallOptions) Validate(args []string) error

type Metadata

type Metadata struct {
	// Mixin Name
	Name string
	// Mixin Directory
	Dir string
	// Path to the client executable
	ClientPath string
}

Metadata about a mixin

type Runner

type Runner struct {
	*context.Context

	Mixin   string
	Runtime bool
	Command string
	Input   string
	File    string
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(mixin, mixinDir string, runtime bool) *Runner

func (*Runner) Run

func (r *Runner) Run() error

func (*Runner) Validate

func (r *Runner) Validate() error

type TestRunner

type TestRunner struct {
	*Runner
	TestContext *context.TestContext
}

func NewTestRunner

func NewTestRunner(t *testing.T, mixin string, runtime bool) *TestRunner

NewTestRunner initializes a mixin test runner, with the output buffered, and an in-memory file system.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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