Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

348 rader
9.3 KiB

  1. package altsrc
  2. import (
  3. "flag"
  4. "gopkg.in/urfave/cli.v1"
  5. )
  6. // WARNING: This file is generated!
  7. // BoolFlag is the flag type that wraps cli.BoolFlag to allow
  8. // for other values to be specified
  9. type BoolFlag struct {
  10. cli.BoolFlag
  11. set *flag.FlagSet
  12. }
  13. // NewBoolFlag creates a new BoolFlag
  14. func NewBoolFlag(fl cli.BoolFlag) *BoolFlag {
  15. return &BoolFlag{BoolFlag: fl, set: nil}
  16. }
  17. // Apply saves the flagSet for later usage calls, then calls the
  18. // wrapped BoolFlag.Apply
  19. func (f *BoolFlag) Apply(set *flag.FlagSet) {
  20. f.set = set
  21. f.BoolFlag.Apply(set)
  22. }
  23. // ApplyWithError saves the flagSet for later usage calls, then calls the
  24. // wrapped BoolFlag.ApplyWithError
  25. func (f *BoolFlag) ApplyWithError(set *flag.FlagSet) error {
  26. f.set = set
  27. return f.BoolFlag.ApplyWithError(set)
  28. }
  29. // BoolTFlag is the flag type that wraps cli.BoolTFlag to allow
  30. // for other values to be specified
  31. type BoolTFlag struct {
  32. cli.BoolTFlag
  33. set *flag.FlagSet
  34. }
  35. // NewBoolTFlag creates a new BoolTFlag
  36. func NewBoolTFlag(fl cli.BoolTFlag) *BoolTFlag {
  37. return &BoolTFlag{BoolTFlag: fl, set: nil}
  38. }
  39. // Apply saves the flagSet for later usage calls, then calls the
  40. // wrapped BoolTFlag.Apply
  41. func (f *BoolTFlag) Apply(set *flag.FlagSet) {
  42. f.set = set
  43. f.BoolTFlag.Apply(set)
  44. }
  45. // ApplyWithError saves the flagSet for later usage calls, then calls the
  46. // wrapped BoolTFlag.ApplyWithError
  47. func (f *BoolTFlag) ApplyWithError(set *flag.FlagSet) error {
  48. f.set = set
  49. return f.BoolTFlag.ApplyWithError(set)
  50. }
  51. // DurationFlag is the flag type that wraps cli.DurationFlag to allow
  52. // for other values to be specified
  53. type DurationFlag struct {
  54. cli.DurationFlag
  55. set *flag.FlagSet
  56. }
  57. // NewDurationFlag creates a new DurationFlag
  58. func NewDurationFlag(fl cli.DurationFlag) *DurationFlag {
  59. return &DurationFlag{DurationFlag: fl, set: nil}
  60. }
  61. // Apply saves the flagSet for later usage calls, then calls the
  62. // wrapped DurationFlag.Apply
  63. func (f *DurationFlag) Apply(set *flag.FlagSet) {
  64. f.set = set
  65. f.DurationFlag.Apply(set)
  66. }
  67. // ApplyWithError saves the flagSet for later usage calls, then calls the
  68. // wrapped DurationFlag.ApplyWithError
  69. func (f *DurationFlag) ApplyWithError(set *flag.FlagSet) error {
  70. f.set = set
  71. return f.DurationFlag.ApplyWithError(set)
  72. }
  73. // Float64Flag is the flag type that wraps cli.Float64Flag to allow
  74. // for other values to be specified
  75. type Float64Flag struct {
  76. cli.Float64Flag
  77. set *flag.FlagSet
  78. }
  79. // NewFloat64Flag creates a new Float64Flag
  80. func NewFloat64Flag(fl cli.Float64Flag) *Float64Flag {
  81. return &Float64Flag{Float64Flag: fl, set: nil}
  82. }
  83. // Apply saves the flagSet for later usage calls, then calls the
  84. // wrapped Float64Flag.Apply
  85. func (f *Float64Flag) Apply(set *flag.FlagSet) {
  86. f.set = set
  87. f.Float64Flag.Apply(set)
  88. }
  89. // ApplyWithError saves the flagSet for later usage calls, then calls the
  90. // wrapped Float64Flag.ApplyWithError
  91. func (f *Float64Flag) ApplyWithError(set *flag.FlagSet) error {
  92. f.set = set
  93. return f.Float64Flag.ApplyWithError(set)
  94. }
  95. // GenericFlag is the flag type that wraps cli.GenericFlag to allow
  96. // for other values to be specified
  97. type GenericFlag struct {
  98. cli.GenericFlag
  99. set *flag.FlagSet
  100. }
  101. // NewGenericFlag creates a new GenericFlag
  102. func NewGenericFlag(fl cli.GenericFlag) *GenericFlag {
  103. return &GenericFlag{GenericFlag: fl, set: nil}
  104. }
  105. // Apply saves the flagSet for later usage calls, then calls the
  106. // wrapped GenericFlag.Apply
  107. func (f *GenericFlag) Apply(set *flag.FlagSet) {
  108. f.set = set
  109. f.GenericFlag.Apply(set)
  110. }
  111. // ApplyWithError saves the flagSet for later usage calls, then calls the
  112. // wrapped GenericFlag.ApplyWithError
  113. func (f *GenericFlag) ApplyWithError(set *flag.FlagSet) error {
  114. f.set = set
  115. return f.GenericFlag.ApplyWithError(set)
  116. }
  117. // Int64Flag is the flag type that wraps cli.Int64Flag to allow
  118. // for other values to be specified
  119. type Int64Flag struct {
  120. cli.Int64Flag
  121. set *flag.FlagSet
  122. }
  123. // NewInt64Flag creates a new Int64Flag
  124. func NewInt64Flag(fl cli.Int64Flag) *Int64Flag {
  125. return &Int64Flag{Int64Flag: fl, set: nil}
  126. }
  127. // Apply saves the flagSet for later usage calls, then calls the
  128. // wrapped Int64Flag.Apply
  129. func (f *Int64Flag) Apply(set *flag.FlagSet) {
  130. f.set = set
  131. f.Int64Flag.Apply(set)
  132. }
  133. // ApplyWithError saves the flagSet for later usage calls, then calls the
  134. // wrapped Int64Flag.ApplyWithError
  135. func (f *Int64Flag) ApplyWithError(set *flag.FlagSet) error {
  136. f.set = set
  137. return f.Int64Flag.ApplyWithError(set)
  138. }
  139. // IntFlag is the flag type that wraps cli.IntFlag to allow
  140. // for other values to be specified
  141. type IntFlag struct {
  142. cli.IntFlag
  143. set *flag.FlagSet
  144. }
  145. // NewIntFlag creates a new IntFlag
  146. func NewIntFlag(fl cli.IntFlag) *IntFlag {
  147. return &IntFlag{IntFlag: fl, set: nil}
  148. }
  149. // Apply saves the flagSet for later usage calls, then calls the
  150. // wrapped IntFlag.Apply
  151. func (f *IntFlag) Apply(set *flag.FlagSet) {
  152. f.set = set
  153. f.IntFlag.Apply(set)
  154. }
  155. // ApplyWithError saves the flagSet for later usage calls, then calls the
  156. // wrapped IntFlag.ApplyWithError
  157. func (f *IntFlag) ApplyWithError(set *flag.FlagSet) error {
  158. f.set = set
  159. return f.IntFlag.ApplyWithError(set)
  160. }
  161. // IntSliceFlag is the flag type that wraps cli.IntSliceFlag to allow
  162. // for other values to be specified
  163. type IntSliceFlag struct {
  164. cli.IntSliceFlag
  165. set *flag.FlagSet
  166. }
  167. // NewIntSliceFlag creates a new IntSliceFlag
  168. func NewIntSliceFlag(fl cli.IntSliceFlag) *IntSliceFlag {
  169. return &IntSliceFlag{IntSliceFlag: fl, set: nil}
  170. }
  171. // Apply saves the flagSet for later usage calls, then calls the
  172. // wrapped IntSliceFlag.Apply
  173. func (f *IntSliceFlag) Apply(set *flag.FlagSet) {
  174. f.set = set
  175. f.IntSliceFlag.Apply(set)
  176. }
  177. // ApplyWithError saves the flagSet for later usage calls, then calls the
  178. // wrapped IntSliceFlag.ApplyWithError
  179. func (f *IntSliceFlag) ApplyWithError(set *flag.FlagSet) error {
  180. f.set = set
  181. return f.IntSliceFlag.ApplyWithError(set)
  182. }
  183. // Int64SliceFlag is the flag type that wraps cli.Int64SliceFlag to allow
  184. // for other values to be specified
  185. type Int64SliceFlag struct {
  186. cli.Int64SliceFlag
  187. set *flag.FlagSet
  188. }
  189. // NewInt64SliceFlag creates a new Int64SliceFlag
  190. func NewInt64SliceFlag(fl cli.Int64SliceFlag) *Int64SliceFlag {
  191. return &Int64SliceFlag{Int64SliceFlag: fl, set: nil}
  192. }
  193. // Apply saves the flagSet for later usage calls, then calls the
  194. // wrapped Int64SliceFlag.Apply
  195. func (f *Int64SliceFlag) Apply(set *flag.FlagSet) {
  196. f.set = set
  197. f.Int64SliceFlag.Apply(set)
  198. }
  199. // ApplyWithError saves the flagSet for later usage calls, then calls the
  200. // wrapped Int64SliceFlag.ApplyWithError
  201. func (f *Int64SliceFlag) ApplyWithError(set *flag.FlagSet) error {
  202. f.set = set
  203. return f.Int64SliceFlag.ApplyWithError(set)
  204. }
  205. // StringFlag is the flag type that wraps cli.StringFlag to allow
  206. // for other values to be specified
  207. type StringFlag struct {
  208. cli.StringFlag
  209. set *flag.FlagSet
  210. }
  211. // NewStringFlag creates a new StringFlag
  212. func NewStringFlag(fl cli.StringFlag) *StringFlag {
  213. return &StringFlag{StringFlag: fl, set: nil}
  214. }
  215. // Apply saves the flagSet for later usage calls, then calls the
  216. // wrapped StringFlag.Apply
  217. func (f *StringFlag) Apply(set *flag.FlagSet) {
  218. f.set = set
  219. f.StringFlag.Apply(set)
  220. }
  221. // ApplyWithError saves the flagSet for later usage calls, then calls the
  222. // wrapped StringFlag.ApplyWithError
  223. func (f *StringFlag) ApplyWithError(set *flag.FlagSet) error {
  224. f.set = set
  225. return f.StringFlag.ApplyWithError(set)
  226. }
  227. // StringSliceFlag is the flag type that wraps cli.StringSliceFlag to allow
  228. // for other values to be specified
  229. type StringSliceFlag struct {
  230. cli.StringSliceFlag
  231. set *flag.FlagSet
  232. }
  233. // NewStringSliceFlag creates a new StringSliceFlag
  234. func NewStringSliceFlag(fl cli.StringSliceFlag) *StringSliceFlag {
  235. return &StringSliceFlag{StringSliceFlag: fl, set: nil}
  236. }
  237. // Apply saves the flagSet for later usage calls, then calls the
  238. // wrapped StringSliceFlag.Apply
  239. func (f *StringSliceFlag) Apply(set *flag.FlagSet) {
  240. f.set = set
  241. f.StringSliceFlag.Apply(set)
  242. }
  243. // ApplyWithError saves the flagSet for later usage calls, then calls the
  244. // wrapped StringSliceFlag.ApplyWithError
  245. func (f *StringSliceFlag) ApplyWithError(set *flag.FlagSet) error {
  246. f.set = set
  247. return f.StringSliceFlag.ApplyWithError(set)
  248. }
  249. // Uint64Flag is the flag type that wraps cli.Uint64Flag to allow
  250. // for other values to be specified
  251. type Uint64Flag struct {
  252. cli.Uint64Flag
  253. set *flag.FlagSet
  254. }
  255. // NewUint64Flag creates a new Uint64Flag
  256. func NewUint64Flag(fl cli.Uint64Flag) *Uint64Flag {
  257. return &Uint64Flag{Uint64Flag: fl, set: nil}
  258. }
  259. // Apply saves the flagSet for later usage calls, then calls the
  260. // wrapped Uint64Flag.Apply
  261. func (f *Uint64Flag) Apply(set *flag.FlagSet) {
  262. f.set = set
  263. f.Uint64Flag.Apply(set)
  264. }
  265. // ApplyWithError saves the flagSet for later usage calls, then calls the
  266. // wrapped Uint64Flag.ApplyWithError
  267. func (f *Uint64Flag) ApplyWithError(set *flag.FlagSet) error {
  268. f.set = set
  269. return f.Uint64Flag.ApplyWithError(set)
  270. }
  271. // UintFlag is the flag type that wraps cli.UintFlag to allow
  272. // for other values to be specified
  273. type UintFlag struct {
  274. cli.UintFlag
  275. set *flag.FlagSet
  276. }
  277. // NewUintFlag creates a new UintFlag
  278. func NewUintFlag(fl cli.UintFlag) *UintFlag {
  279. return &UintFlag{UintFlag: fl, set: nil}
  280. }
  281. // Apply saves the flagSet for later usage calls, then calls the
  282. // wrapped UintFlag.Apply
  283. func (f *UintFlag) Apply(set *flag.FlagSet) {
  284. f.set = set
  285. f.UintFlag.Apply(set)
  286. }
  287. // ApplyWithError saves the flagSet for later usage calls, then calls the
  288. // wrapped UintFlag.ApplyWithError
  289. func (f *UintFlag) ApplyWithError(set *flag.FlagSet) error {
  290. f.set = set
  291. return f.UintFlag.ApplyWithError(set)
  292. }