app

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//AppName defines the app name
	AppName = "Commander"
	//CommanderFile holds the default config file which is loaded
	CommanderFile = "commander.yaml"
)

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(command string, existed []byte) ([]byte, error)

AddCommand executes the add command command is the command which should be added to the test suite existed holds the existing yaml content

func TestCommand

func TestCommand(file string, title string, ctx AddCommandContext) error

TestCommand executes the test argument file is the path to the configuration file title ist the title of test which should be executed, if empty it will execute all tests ctx holds the command flags

Types

type AddCommandContext

type AddCommandContext struct {
	Verbose    bool
	NoColor    bool
	Concurrent int
}

AddCommandContext holds all flags for the add command

func NewAddContextFromCli

func NewAddContextFromCli(c *cli.Context) AddCommandContext

NewAddContextFromCli is a constructor which creates the context

Jump to

Keyboard shortcuts

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