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