burrow

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXIT_SUCCESS int = iota
	EXIT_CONFIG
	EXIT_ACTION
)

Variables

This section is empty.

Functions

func Exec

func Exec(target string, comm string, args ...string) error

func GetCodefiles

func GetCodefiles() []string

func GetCodefilesWithMtime

func GetCodefilesWithMtime(outputs []string) map[string]int64

func GetSecondLevelArgs

func GetSecondLevelArgs() cli.Args

func IsTargetUpToDate

func IsTargetUpToDate(target string, outputs []string) bool

func LoadConfig

func LoadConfig()

func Log

func Log(level LogLevel, target string, format string, args ...interface{})

func UpdateTarget

func UpdateTarget(target string, outputs []string)

Types

type Configuration

type Configuration struct {
	Name        string
	Version     string
	Description string
	Authors     []string
	License     string
	Package     struct {
		Include []string
	}
	Args struct {
		Run string
		Go  struct {
			Test  string
			Build string
			Doc   string
			Vet   string
			Fmt   string
		}
		Glide struct {
			Install string
			Update  string
			Get     string
		}
		Git struct {
			Tag   string
			Clone string
		}
	}
}
var Config Configuration = Configuration{}

type LogLevel

type LogLevel int
const (
	LOG_INFO LogLevel = iota
	LOG_WARN
	LOG_ERR
)

type Logger

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

func NewLogger

func NewLogger(target string, level LogLevel) Logger

func (Logger) Write

func (self Logger) Write(payload []byte) (int, error)

Jump to

Keyboard shortcuts

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