setting

package
v0.0.0-...-e96ec94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg struct {
	Run struct {
		InitCmds         [][]string       `toml:"init_cmds"`
		WatchAll         bool             `toml:"watch_all"`
		WatchDirs        []string         `toml:"watch_dirs"`
		WatchExts        []string         `toml:"watch_exts"`
		IgnoreDirs       []string         `toml:"ignore"`
		IgnoreFiles      []string         `toml:"ignore_files"`
		IgnoreRegexps    []*regexp.Regexp `toml:"-"`
		BuildDelay       int              `toml:"build_delay"`
		InterruptTimeout int              `toml:"interrupt_timout"`
		Cmds             [][]string       `toml:"cmds"`
	} `toml:"run"`
	Sync struct {
		ListenAddr string `toml:"listen_addr"`
		RemoteAddr string `toml:"remote_addr"`
	} `toml:"sync"`
}
View Source
var (
	WorkDir string
)

Functions

func IgnoreDir

func IgnoreDir(dir string) bool

IgnoreDir determines whether specified dir must be ignored.

func IgnoreFile

func IgnoreFile(file string) bool

IgnoreFile returns true if file path matches ignore regexp.

func InitSetting

func InitSetting()

func UnpackPath

func UnpackPath(path string) string

UnpackPath replaces special path variables and returns full path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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