baconfile

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "1.0"

Functions

This section is empty.

Types

type B

type B struct {
	Version string             `yaml:"version"`
	Targets map[string]*Target `yaml:"target"`
}

func Unmarshal

func Unmarshal(bytes []byte) (*B, error)

func (*B) Marshal

func (b *B) Marshal() ([]byte, error)

func (*B) Validate

func (b *B) Validate() error

type Target

type Target struct {
	Watch   []string `yaml:"watch"`
	Exclude []string `yaml:"exclude,omitempty"`
	Dir     string   `yaml:"dir,omitempty"`
	Command []string `yaml:"command"`
	Pass    []string `yaml:"pass,omitempty"`
	Fail    []string `yaml:"fail,omitempty"`
	Shell   string   `yaml:"shell,omitempty"`
}

Jump to

Keyboard shortcuts

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