VictoriaMetrics/vendor/github.com/urfave/cli/v2/flag-spec.yaml

132 lines
3.1 KiB
YAML
Raw Permalink Normal View History

2022-05-20 11:45:24 +00:00
# NOTE: this file is used by the tool defined in
2022-11-10 11:55:47 +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-11-10 11:55:47 +00:00
bool:
2022-05-20 11:45:24 +00:00
struct_fields:
2022-11-10 11:55:47 +00:00
- name: Count
type: int
pointer: true
2023-02-19 07:05:15 +00:00
- name: DisableDefaultText
type: bool
2022-11-10 11:55:47 +00:00
- name: Action
type: "func(*Context, bool) error"
float64:
2022-05-20 11:45:24 +00:00
struct_fields:
2022-11-10 11:55:47 +00:00
- name: Action
type: "func(*Context, float64) error"
2022-05-20 11:45:24 +00:00
Float64Slice:
value_pointer: true
skip_interfaces:
- fmt.Stringer
2022-11-10 11:55:47 +00:00
struct_fields:
2023-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- 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:
2023-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- name: Action
type: "func(*Context, []int) error"
int64:
struct_fields:
- name: Base
type: int
- name: Action
type: "func(*Context, int64) error"
2022-05-20 11:45:24 +00:00
Int64Slice:
value_pointer: true
skip_interfaces:
- fmt.Stringer
2022-11-10 11:55:47 +00:00
struct_fields:
2023-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- name: Action
type: "func(*Context, []int64) error"
uint:
struct_fields:
- name: Base
type: int
- name: Action
type: "func(*Context, uint) error"
UintSlice:
2022-05-20 11:45:24 +00:00
value_pointer: true
skip_interfaces:
- fmt.Stringer
2022-11-10 11:55:47 +00:00
struct_fields:
2023-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- 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:
2023-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- name: Action
type: "func(*Context, []uint64) error"
string:
struct_fields:
- name: TakesFile
type: bool
- 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-02-19 07:05:15 +00:00
- name: separator
type: separatorSpec
2022-11-10 11:55:47 +00:00
- name: TakesFile
type: bool
- name: Action
type: "func(*Context, []string) error"
2023-02-19 07:05:15 +00:00
- name: KeepSpace
type: bool
2022-11-10 11:55:47 +00:00
time.Duration:
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-11-10 11:55:47 +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"