scripts

package
v0.0.0-...-ad678bb Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRequest

type CommandRequest struct {
	DegreeOfParallelism int      `json:"degreeOfParallelism"`
	Script              string   `json:"script"`
	Directory           string   `json:"directory"`
	Arguments           []string `json:"arguments"`
}

type Commander

type Commander interface {
	Command(name string, arg ...string) *exec.Cmd
}

type FormFields

type FormFields struct {
	Name        string       `json:"name"`
	FormatName  string       `json:"formatName"`
	Format      string       `json:"format"`
	Example     string       `json:"example"`
	Description string       `json:"description"`
	Options     []MenuOption `json:"options"`
}

func ParseINIFile

func ParseINIFile(path string) (FormFields, error)
type MenuOption struct {
	Default     string            `json:"default"`
	Description string            `json:"description"`
	Cases       map[string]string `json:"cases"`
}

type Runner

type Runner struct {
	Script        string   `json:"script"`
	Errors        []string `json:"errors"`
	StopRequested bool     `json:"stopRequested"`
	Enqueued      []string `json:"enqueued"`
	Successful    []string `json:"successful"`
	Failed        []string `json:"failed"`
	Skipped       []string `json:"skipped"`
	Started       bool     `json:"started"`
	Done          bool     `json:"done"`
	Directory     string   `json:"directory"`
	// contains filtered or unexported fields
}

func (*Runner) IdentifyTargets

func (r *Runner) IdentifyTargets(directory string, extension string, sample string) ([]string, error)

func (*Runner) RunScript

func (r *Runner) RunScript(degreeOfParallelism int, script string, targets []string, argv []string,
	bookkeepingFile string) error

func (*Runner) Stop

func (r *Runner) Stop()

type StandardCommander

type StandardCommander struct{}

func (*StandardCommander) Command

func (sc *StandardCommander) Command(name string, arg ...string) *exec.Cmd

Jump to

Keyboard shortcuts

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