aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/urfave/cli/flag-types.json
blob: 1223107859a17d1be2d0a2f2767291d08326cc4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[
  {
    "name": "Bool",
    "type": "bool",
    "value": false,
    "context_default": "false",
    "parser": "strconv.ParseBool(f.Value.String())"
  },
  {
    "name": "BoolT",
    "type": "bool",
    "value": false,
    "doctail": " that is true by default",
    "context_default": "false",
    "parser": "strconv.ParseBool(f.Value.String())"
  },
  {
    "name": "Duration",
    "type": "time.Duration",
    "doctail": " (see https://golang.org/pkg/time/#ParseDuration)",
    "context_default": "0",
    "parser": "time.ParseDuration(f.Value.String())"
  },
  {
    "name": "Float64",
    "type": "float64",
    "context_default": "0",
    "parser": "strconv.ParseFloat(f.Value.String(), 64)"
  },
  {
    "name": "Generic",
    "type": "Generic",
    "dest": false,
    "context_default": "nil",
    "context_type": "interface{}"
  },
  {
    "name": "Int64",
    "type": "int64",
    "context_default": "0",
    "parser": "strconv.ParseInt(f.Value.String(), 0, 64)"
  },
  {
    "name": "Int",
    "type": "int",
    "context_default": "0",
    "parser": "strconv.ParseInt(f.Value.String(), 0, 64)",
    "parser_cast": "int(parsed)"
  },
  {
    "name": "IntSlice",
    "type": "*IntSlice",
    "dest": false,
    "context_default": "nil",
    "context_type": "[]int",
    "parser": "(f.Value.(*IntSlice)).Value(), error(nil)"
  },
  {
    "name": "Int64Slice",
    "type": "*Int64Slice",
    "dest": false,
    "context_default": "nil",
    "context_type": "[]int64",
    "parser": "(f.Value.(*Int64Slice)).Value(), error(nil)"
  },
  {
    "name": "String",
    "type": "string",
    "context_default": "\"\"",
    "parser": "f.Value.String(), error(nil)"
  },
  {
    "name": "StringSlice",
    "type": "*StringSlice",
    "dest": false,
    "context_default": "nil",
    "context_type": "[]string",
    "parser": "(f.Value.(*StringSlice)).Value(), error(nil)"
  },
  {
    "name": "Uint64",
    "type": "uint64",
    "context_default": "0",
    "parser": "strconv.ParseUint(f.Value.String(), 0, 64)"
  },
  {
    "name": "Uint",
    "type": "uint",
    "context_default": "0",
    "parser": "strconv.ParseUint(f.Value.String(), 0, 64)",
    "parser_cast": "uint(parsed)"
  }
]