testcmdsite

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ID int

	Args []string

	StringFlags map[string]string
	BoolFlags   map[string]bool
	IntFlags    map[string]int

	Stdout string
	Stderr string
}

type Result

type Result struct {
	Stdout string
	Stderr string
}

type TestCommandSite

type TestCommandSite struct {
	*cmdsite.CommandSite
	Commands map[string][]*Command
	// contains filtered or unexported fields
}

func New

func New() *TestCommandSite

func (*TestCommandSite) Add

func (s *TestCommandSite) Add(cmd string, flags map[string]interface{}, args []string, stdout, stderr string) (int, error)

Jump to

Keyboard shortcuts

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