commands

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Available = make(map[string]*Command)

Functions

This section is empty.

Types

type Command

type Command struct {
	Identifier string
	Argc       int
	Logic      func(env *Environment, args ...string) error
}

type Environment

type Environment struct {
	Vars     Variables
	Dry      bool
	OnError  ErrorHandlingType
	ErrorLog string
}

type ErrorHandlingType added in v1.3.0

type ErrorHandlingType int
const (
	AbortOnError ErrorHandlingType = iota
	ContinueOnError
	SuppressErrors
	LogErrors
)

type Variables

type Variables map[string]string

func (Variables) AsEnv added in v1.1.0

func (v Variables) AsEnv() []string

Jump to

Keyboard shortcuts

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