Documentation ¶
Index ¶
- Constants
- Variables
- func Exit(info string)
- func ExitWithHelp(info string)
- func ParseArgs(args []string) (string, string)
- func PrintExampleUsage(uiInstalled bool)
- func PrintHelp(uiInstalled bool)
- func PrintVersion()
- func TestJavaHome(home string) string
- func TestRun(suite string)
- func TestUI(contextFolder string)
- type StringSlice
Constants ¶
View Source
const ( //RunMode is used for executing a test RunMode = "run" //UiMode is used to start sakuli UI jar UiMode = "ui" //EncryptMode is used to encrypt a password EncryptMode = "encrypt" //CreateMode is used for creating new objects like a masterkey CreateMode = "create" //Error this should never happen Error = "should never happen" //OPTION values //key for the sakuli home value OptSakuliHome = "sakuliHome" OptSahiHome = "sahiHome" OptBrowser = "browser" OptInterface = "interface" OptMasterkey = "masterkey" )
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 PrintExampleUsage ¶ added in v1.0.4
func PrintExampleUsage(uiInstalled bool)
if ui is not installed don't show the UI examples
func TestJavaHome ¶
TestJavaHome returns a string if the javahome is valid, an empty if not
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
Click to show internal directories.
Click to hide internal directories.