diff --git a/commands/option.go b/commands/option.go new file mode 100644 index 0000000000000000000000000000000000000000..ca26208b8c266bfccf17e8dc8ad7e22b32b5fa27 --- /dev/null +++ b/commands/option.go @@ -0,0 +1,20 @@ +package commands + +import "reflect" + +const ( + Invalid = reflect.Invalid + Bool = reflect.Bool + Int = reflect.Int + Uint = reflect.Uint + Float = reflect.Float32 + String = reflect.String +) + +// Option is used to specify a field that will be provided by a consumer +type Option struct { + Names []string // a list of unique names to + Type reflect.Kind // value must be this type + //Default interface{} // the default value (ignored if `Required` is true) + //Required bool // whether or not the option must be provided +}