Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAndValidate ¶
ParseAndValidate checks that the provided arguments match the argument specifications for this TTP
**Parameters:**
specs: slice of argument Spec values loaded from the TTP yaml argKvStrs: slice of arguments in "ARG_NAME=ARG_VALUE" format
**Returns:**
map[string]string: the parsed and validated argument key-value pairs error: an error if there is a problem
Types ¶
type Spec ¶
type Spec struct { Name string `yaml:"name"` Type string `yaml:"type,omitempty"` Default string `yaml:"default,omitempty"` Choices []string `yaml:"choices,omitempty"` Format string `yaml:"regexp,omitempty"` // contains filtered or unexported fields }
Spec defines a CLI argument for the TTP
Click to show internal directories.
Click to hide internal directories.