Documentation ¶
Index ¶
- Constants
- func ClearPrompt()
- func CommandParser() <-chan Command
- func FileExists(path string) bool
- func GoTest(test_files []string)
- func GoTestAll()
- func Header()
- func Help()
- func IsSuiteFile(file string) bool
- func PrintCommand(args []string)
- func PrintCommandOutput(out []byte)
- func PrintWatching(folder string)
- func RedGreen(pass bool)
- func ShowDuration(dur time.Duration)
- func Subfolders(path string) (paths []string)
- func SuiteFile(file string) string
- func TestFile(file string) string
- func UnknownCommand(command string)
- type Command
- type FileChecker
- type RecursiveWatcher
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 IsSuiteFile ¶
func PrintCommand ¶
func PrintCommand(args []string)
func PrintCommandOutput ¶
func PrintCommandOutput(out []byte)
func PrintWatching ¶
func PrintWatching(folder string)
func ShowDuration ¶
func Subfolders ¶
returns a slice of subfolders (recursive), including the folder passed in
func UnknownCommand ¶
func UnknownCommand(command string)
Types ¶
type FileChecker ¶
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 ¶
func NewRecurisveWatcher ¶
func NewRecurisveWatcher(path string) (*RecursiveWatcher, error)
func (*RecursiveWatcher) AddFolder ¶
func (watcher *RecursiveWatcher) AddFolder(folder string)
func (*RecursiveWatcher) Run ¶
func (watcher *RecursiveWatcher) Run()
Click to show internal directories.
Click to hide internal directories.