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