gat

package
v0.0.0-...-147e9dc Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2013 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CSI = "\x1b["

Variables

This section is empty.

Functions

func ClearPrompt

func ClearPrompt()

remove from the screen anything that's been typed from github.com/kierdavis/ansi

func CommandParser

func CommandParser() <-chan Command

func FileExists

func FileExists(path string) bool

func GoTest

func GoTest(test_files []string)

func GoTestAll

func GoTestAll()
func Header()

func Help

func Help()

func IsSuiteFile

func IsSuiteFile(file string) bool

func PrintCommand

func PrintCommand(args []string)

func PrintCommandOutput

func PrintCommandOutput(out []byte)

func PrintWatching

func PrintWatching(folder string)

func RedGreen

func RedGreen(pass bool)

func ShowDuration

func ShowDuration(dur time.Duration)

func Subfolders

func Subfolders(path string) (paths []string)

returns a slice of subfolders (recursive), including the folder passed in

func SuiteFile

func SuiteFile(file string) string

func TestFile

func TestFile(file string) string

func UnknownCommand

func UnknownCommand(command string)

Types

type Command

type Command int
const (
	UNKNOWN Command = iota
	HELP
	EXIT
	TEST_ALL
)

func NormalizeCommand

func NormalizeCommand(in string) (c Command)

type FileChecker

type FileChecker struct {
	Exists func(string) bool
	// contains filtered or unexported fields
}

func NewFileChecker

func NewFileChecker(file string) FileChecker

func (FileChecker) IsGoFile

func (fc FileChecker) IsGoFile() bool

func (FileChecker) IsTestFile

func (fc FileChecker) IsTestFile() bool

func (FileChecker) TestsForGoFile

func (fc FileChecker) TestsForGoFile() []string

type RecursiveWatcher

type RecursiveWatcher struct {
	*fsnotify.Watcher
	Files   chan string
	Folders chan string
}

func NewRecurisveWatcher

func NewRecurisveWatcher(path string) (*RecursiveWatcher, error)

func (*RecursiveWatcher) AddFolder

func (watcher *RecursiveWatcher) AddFolder(folder string)

func (*RecursiveWatcher) Run

func (watcher *RecursiveWatcher) Run()

Jump to

Keyboard shortcuts

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