Documentation ¶
Overview ¶
Package flagx contains extra utilities to complement the flag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommaList ¶
CommaList returns a flag.Value that can be passed to flag.Var to parse a comma separated list string into a string slice.
func DeployActionList ¶
DeployActionList returns a flag.Value that can be passed to flag.Var to parse a comma separated list string into a dutprep.Action slice.
func JSONMap ¶
JSONMap returns a flag.Value that can be passed to flag.Var to parse a JSON string into a map.
func TaskType ¶
func TaskType(t *atutil.AdminTaskType, c TaskTypeConfig) flag.Value
TaskType returns a flag.Value that can be passed to flag.Var for parsing an atutil.AdminTaskType.
Types ¶
type TaskTypeConfig ¶
type TaskTypeConfig int8
TaskTypeConfig is passed to TaskTypeValue to configure parsing.
const ( RejectNoTask TaskTypeConfig = 1 << iota RejectRepair )
Bit flags for TaskTypeConfig.
Click to show internal directories.
Click to hide internal directories.