task

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilesKinds = [...]FileKind{Infiles, Outfiles}

Functions

This section is empty.

Types

type CommandTemplate

type CommandTemplate string

func (CommandTemplate) Recepie

func (ct CommandTemplate) Recepie() Recepie

type Env

type Env map[string]string

type FileKind

type FileKind int
const (
	Infiles FileKind = iota
	Outfiles
)

type FileString

type FileString struct {
	String string
	Files  []string
	Has    bool
}

type Files

type Files map[FileKind]FileString

type Maker

type Maker interface {
	ExecuteRecepie(Recepie) error
}

type Recepie

type Recepie struct {
	Env     Env
	Command string
	// contains filtered or unexported fields
}

func (Recepie) GetFiles

func (r Recepie) GetFiles(fk FileKind) ([]string, bool)

func (*Recepie) SetInFile

func (r *Recepie) SetInFile(files string) *Recepie

func (*Recepie) SetInFiles

func (r *Recepie) SetInFiles(files []string) *Recepie

func (*Recepie) SetOutFile

func (r *Recepie) SetOutFile(files string) *Recepie

func (*Recepie) SetOutFiles

func (r *Recepie) SetOutFiles(files []string) *Recepie

type Shell

type Shell struct {
	// contains filtered or unexported fields
}

func (Shell) GetFilesString

func (s Shell) GetFilesString(r Recepie) Files

func (Shell) NeedsUpdate

func (s Shell) NeedsUpdate(files Files) (bool, error)

Jump to

Keyboard shortcuts

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