run

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (config.Config, error)

func GetPrinter

func GetPrinter(c config.Config) common.Registerable

Types

type Run

type Run struct {
	Shell   string
	Printer common.Registerable
	Hooks   []config.Hook
	Timeout time.Duration
}

Run is the main dependency container.

func GetRun

func GetRun(
	shell Shell,
	c config.Config,
	printer common.Registerable,
) *Run

func InitializeRunner

func InitializeRunner() (*Run, error)

func (Run) Start

func (r Run) Start() error

Start takes the list of Hooks and executes them.

type Shell

type Shell = string

func GetShell

func GetShell() (Shell, error)

Jump to

Keyboard shortcuts

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