Arg is a positional argument.
| 52 | |
| 53 | // Arg is a positional argument. |
| 54 | type Arg struct { |
| 55 | Name string `json:"name"` |
| 56 | Type string `json:"type"` |
| 57 | Required bool `json:"required,omitempty"` |
| 58 | Description string `json:"description,omitempty"` |
| 59 | Default interface{} `json:"default,omitempty"` |
| 60 | Format string `json:"format,omitempty"` |
| 61 | Repeatable bool `json:"repeatable,omitempty"` |
| 62 | Enum []interface{} `json:"enum,omitempty"` |
| 63 | EnumSource string `json:"enum_source,omitempty"` |
| 64 | } |
| 65 | |
| 66 | // Flag is a flag (option) on a command. |
| 67 | type Flag struct { |
nothing calls this directly
no outgoing calls
no test coverage detected