26 lines
378 B
Go
26 lines
378 B
Go
package exec_extra
|
|
|
|
import (
|
|
`reflect`
|
|
|
|
`r00t2.io/goutils/bitmask`
|
|
)
|
|
|
|
type (
|
|
cmdArgOpt bitmask.MaskBit
|
|
)
|
|
|
|
type (
|
|
cmdArgFlag struct {
|
|
defaults *bitmask.MaskBit
|
|
fieldOpts *bitmask.MaskBit
|
|
boolMap map[string]bool
|
|
strMap map[string]string
|
|
shortFlag string
|
|
longFlag string
|
|
field *reflect.StructField
|
|
value *reflect.Value
|
|
argSlice *[]string
|
|
}
|
|
)
|