| 1 |
# NOTE: this file is used by the tool defined in |
| 2 |
# ./cmd/urfave-cli-genflags/main.go which uses the |
| 3 |
# `Spec` type that maps to this file structure. |
| 4 |
flag_types: |
| 5 |
bool: |
| 6 |
struct_fields: |
| 7 |
- name: Count |
| 8 |
type: int |
| 9 |
pointer: true |
| 10 |
- name: DisableDefaultText |
| 11 |
type: bool |
| 12 |
- name: Action |
| 13 |
type: "func(*Context, bool) error" |
| 14 |
float64: |
| 15 |
struct_fields: |
| 16 |
- name: Action |
| 17 |
type: "func(*Context, float64) error" |
| 18 |
Float64Slice: |
| 19 |
value_pointer: true |
| 20 |
skip_interfaces: |
| 21 |
- fmt.Stringer |
| 22 |
struct_fields: |
| 23 |
- name: separator |
| 24 |
type: separatorSpec |
| 25 |
- name: Action |
| 26 |
type: "func(*Context, []float64) error" |
| 27 |
int: |
| 28 |
struct_fields: |
| 29 |
- name: Base |
| 30 |
type: int |
| 31 |
- name: Action |
| 32 |
type: "func(*Context, int) error" |
| 33 |
IntSlice: |
| 34 |
value_pointer: true |
| 35 |
skip_interfaces: |
| 36 |
- fmt.Stringer |
| 37 |
struct_fields: |
| 38 |
- name: separator |
| 39 |
type: separatorSpec |
| 40 |
- name: Action |
| 41 |
type: "func(*Context, []int) error" |
| 42 |
int64: |
| 43 |
struct_fields: |
| 44 |
- name: Base |
| 45 |
type: int |
| 46 |
- name: Action |
| 47 |
type: "func(*Context, int64) error" |
| 48 |
Int64Slice: |
| 49 |
value_pointer: true |
| 50 |
skip_interfaces: |
| 51 |
- fmt.Stringer |
| 52 |
struct_fields: |
| 53 |
- name: separator |
| 54 |
type: separatorSpec |
| 55 |
- name: Action |
| 56 |
type: "func(*Context, []int64) error" |
| 57 |
uint: |
| 58 |
struct_fields: |
| 59 |
- name: Base |
| 60 |
type: int |
| 61 |
- name: Action |
| 62 |
type: "func(*Context, uint) error" |
| 63 |
UintSlice: |
| 64 |
value_pointer: true |
| 65 |
skip_interfaces: |
| 66 |
- fmt.Stringer |
| 67 |
struct_fields: |
| 68 |
- name: separator |
| 69 |
type: separatorSpec |
| 70 |
- name: Action |
| 71 |
type: "func(*Context, []uint) error" |
| 72 |
uint64: |
| 73 |
struct_fields: |
| 74 |
- name: Base |
| 75 |
type: int |
| 76 |
- name: Action |
| 77 |
type: "func(*Context, uint64) error" |
| 78 |
Uint64Slice: |
| 79 |
value_pointer: true |
| 80 |
skip_interfaces: |
| 81 |
- fmt.Stringer |
| 82 |
struct_fields: |
| 83 |
- name: separator |
| 84 |
type: separatorSpec |
| 85 |
- name: Action |
| 86 |
type: "func(*Context, []uint64) error" |
| 87 |
string: |
| 88 |
struct_fields: |
| 89 |
- name: TakesFile |
| 90 |
type: bool |
| 91 |
- name: Action |
| 92 |
type: "func(*Context, string) error" |
| 93 |
StringSlice: |
| 94 |
value_pointer: true |
| 95 |
skip_interfaces: |
| 96 |
- fmt.Stringer |
| 97 |
struct_fields: |
| 98 |
- name: separator |
| 99 |
type: separatorSpec |
| 100 |
- name: TakesFile |
| 101 |
type: bool |
| 102 |
- name: Action |
| 103 |
type: "func(*Context, []string) error" |
| 104 |
- name: KeepSpace |
| 105 |
type: bool |
| 106 |
time.Duration: |
| 107 |
struct_fields: |
| 108 |
- name: Action |
| 109 |
type: "func(*Context, time.Duration) error" |
| 110 |
Timestamp: |
| 111 |
value_pointer: true |
| 112 |
struct_fields: |
| 113 |
- name: Layout |
| 114 |
type: string |
| 115 |
- name: Timezone |
| 116 |
type: "*time.Location" |
| 117 |
- name: Action |
| 118 |
type: "func(*Context, *time.Time) error" |
| 119 |
Generic: |
| 120 |
no_destination_pointer: true |
| 121 |
struct_fields: |
| 122 |
- name: TakesFile |
| 123 |
type: bool |
| 124 |
- name: Action |
| 125 |
type: "func(*Context, interface{}) error" |
| 126 |
Path: |
| 127 |
struct_fields: |
| 128 |
- name: TakesFile |
| 129 |
type: bool |
| 130 |
- name: Action |
| 131 |
type: "func(*Context, Path) error" |