run

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands map[string]func(*Set, ...string) (string, error)

Functions

func GetVer added in v0.0.2

func GetVer() string

func LoadCommands added in v0.0.5

func LoadCommands()

func SetCommand added in v0.0.5

func SetCommand(n string, f func(*Set, ...string) (string, error))

Types

type Set

type Set struct {
	Ver string

	DirName string

	Name        string
	Description string

	Steps []step
	// contains filtered or unexported fields
}

func LoadSetFromDir added in v0.0.2

func LoadSetFromDir(dir string) (*Set, error)

func NewSet

func NewSet(name, description string) *Set

func (*Set) AddStep

func (ds *Set) AddStep(desc string, cmdId string, args ...string) error

func (*Set) GetOS added in v0.0.2

func (ds *Set) GetOS() string

func (*Set) Load

func (s *Set) Load() error

func (*Set) Run

func (ds *Set) Run()

Jump to

Keyboard shortcuts

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