cmd

package
v0.0.0-...-7e86dca Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 9 Imported by: 10

Documentation

Index

Constants

View Source
const Version = "1.17.0"

Variables

View Source
var Exists = func(path string) bool {
	m, err := zglob.Glob(path)
	return err == nil && len(m) > 0
}
View Source
var RootCmd = &cobra.Command{
	Use:                "tt",
	DisableFlagParsing: true,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		if !asJSON {
			fmt.Printf("Test Runner: v%s\n\n", Version)
		}
	},
	Run: func(cmd *cobra.Command, args []string) {
		for _, r := range builders {
			if Exists(r.keyFile) {
				Run(r.builderFunc(args))
			}
		}
	},
}
View Source
var Verbose bool

Functions

func Execute

func Execute()

func Exit

func Exit(err error)

func Run

func Run(cmd *Cmd)

Types

type Cmd

type Cmd struct {
	*exec.Cmd
}

func BuffaloBuilder

func BuffaloBuilder(args []string) *Cmd

func GoBuilder

func GoBuilder(args []string) *Cmd

func MakefileBuilder

func MakefileBuilder(args []string) *Cmd

func New

func New(name string, args ...string) *Cmd

func TestSHBuilder

func TestSHBuilder(args []string) *Cmd

func (Cmd) String

func (c Cmd) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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