input

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//EncryptMode is used to encrypt a password
	EncryptMode = "encrypt"
	//RunMode is used for executing a test
	RunMode = "run"
	//Error this should never happen
	Error = "should never happen"
)

Variables

View Source
var MyFlagSet *flag.FlagSet

MyFlagSet contains the parsed arguemnts, will be set at the beginning.

Functions

func Exit

func Exit(info string)

ExitWithHelp prints the help, the info and exits the program with 999.

func ExitWithHelp

func ExitWithHelp(info string)

ExitWithHelp prints the help, the info and exits the program with 999.

func ParseArgs

func ParseArgs(args []string) (string, string)

ParseArgs parses the COMMAND and its options

func PrintVersion

func PrintVersion()

PrintVersion prints the sakuli version and env variables.

func TestJavaHome

func TestJavaHome(home string) string

TestJavaHome returns a string if the javahome is valid, an empty if not

func TestRun

func TestRun(suite string)

TestRun makes validation tests on the run parameter

Types

type StringSlice

type StringSlice []string

StringSlice is used for multiple string args

func (StringSlice) AddPrefix

func (s StringSlice) AddPrefix(prefix string) StringSlice

AddPrefix adds a given Prefix to every element

func (*StringSlice) Set

func (s *StringSlice) Set(value string) error

Set is for the flag.Var function

func (*StringSlice) String

func (s *StringSlice) String() string

String is for the flag.Var function

Jump to

Keyboard shortcuts

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