shell

package
v1.0.13-0...-818ebdc Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithRunner

func RunWithRunner(
	cmd *exec.Cmd,
	config *runner.Config,
	withPty bool,
) (
	exit int,
	err error,
)

RunWithRunner runs a command

Types

type Config

type Config struct {
	Defaults map[string]string `json:"defaults"`
	Cmd      []string          `json:"cmd"`
	Env      map[string]string `json:"env"`
	Files    []FileConfig      `json:"files"`
	Script   *runner.Config    `json:"script"`
}

Config is a configuration

type FileConfig

type FileConfig struct {
	Path    string `json:"path"`
	Content string `json:"content"`
}

FileConfig file configuration

Jump to

Keyboard shortcuts

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