2022-05-20 11:45:24 +00:00
|
|
|
# NOTE: this file is used by the tool defined in
|
2022-09-02 18:42:41 +00:00
|
|
|
# ./cmd/urfave-cli-genflags/main.go which uses the
|
|
|
|
# `Spec` type that maps to this file structure.
|
2022-05-20 11:45:24 +00:00
|
|
|
flag_types:
|
2022-09-13 13:44:44 +00:00
|
|
|
bool:
|
2022-09-02 18:42:41 +00:00
|
|
|
struct_fields:
|
2022-09-13 13:44:44 +00:00
|
|
|
- name: Count
|
|
|
|
type: int
|
|
|
|
pointer: true
|
2023-01-23 16:05:39 +00:00
|
|
|
- name: DisableDefaultText
|
|
|
|
type: bool
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, bool) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
float64:
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, float64) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
Float64Slice:
|
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []float64) error"
|
2022-09-02 18:42:41 +00:00
|
|
|
int:
|
|
|
|
struct_fields:
|
2022-09-13 13:44:44 +00:00
|
|
|
- name: Base
|
|
|
|
type: int
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, int) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
IntSlice:
|
2022-05-20 11:45:24 +00:00
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []int) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
int64:
|
|
|
|
struct_fields:
|
|
|
|
- name: Base
|
|
|
|
type: int
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, int64) error"
|
2022-05-20 11:45:24 +00:00
|
|
|
Int64Slice:
|
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []int64) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
uint:
|
|
|
|
struct_fields:
|
|
|
|
- name: Base
|
|
|
|
type: int
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, uint) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
UintSlice:
|
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []uint) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
uint64:
|
|
|
|
struct_fields:
|
|
|
|
- name: Base
|
|
|
|
type: int
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, uint64) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
Uint64Slice:
|
2022-05-20 11:45:24 +00:00
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []uint64) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
string:
|
|
|
|
struct_fields:
|
|
|
|
- name: TakesFile
|
|
|
|
type: bool
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, string) error"
|
2022-05-20 11:45:24 +00:00
|
|
|
StringSlice:
|
|
|
|
value_pointer: true
|
|
|
|
skip_interfaces:
|
|
|
|
- fmt.Stringer
|
|
|
|
struct_fields:
|
2023-01-31 19:03:20 +00:00
|
|
|
- name: separator
|
|
|
|
type: separatorSpec
|
2022-09-13 13:44:44 +00:00
|
|
|
- name: TakesFile
|
|
|
|
type: bool
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, []string) error"
|
2023-02-08 16:55:14 +00:00
|
|
|
- name: KeepSpace
|
|
|
|
type: bool
|
2022-09-13 13:44:44 +00:00
|
|
|
time.Duration:
|
2022-10-01 14:20:01 +00:00
|
|
|
struct_fields:
|
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, time.Duration) error"
|
2022-05-20 11:45:24 +00:00
|
|
|
Timestamp:
|
|
|
|
value_pointer: true
|
|
|
|
struct_fields:
|
2022-09-13 13:44:44 +00:00
|
|
|
- name: Layout
|
|
|
|
type: string
|
|
|
|
- name: Timezone
|
|
|
|
type: "*time.Location"
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, *time.Time) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
Generic:
|
|
|
|
no_destination_pointer: true
|
|
|
|
struct_fields:
|
|
|
|
- name: TakesFile
|
|
|
|
type: bool
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, interface{}) error"
|
2022-09-13 13:44:44 +00:00
|
|
|
Path:
|
|
|
|
struct_fields:
|
|
|
|
- name: TakesFile
|
|
|
|
type: bool
|
2022-10-01 14:20:01 +00:00
|
|
|
- name: Action
|
|
|
|
type: "func(*Context, Path) error"
|