2019-06-17 09:48:05 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
type Yo struct {
|
|
|
|
Foo string `description:"Foo description"`
|
|
|
|
Fii string `description:"Fii description"`
|
|
|
|
Fuu string `description:"Fuu description"`
|
2020-06-17 14:48:04 +00:00
|
|
|
Yi *Yi `label:"allowEmpty" file:"allowEmpty"`
|
2019-06-17 09:48:05 +00:00
|
|
|
Yu *Yi
|
|
|
|
}
|
|
|
|
|
|
|
|
func (y *Yo) SetDefaults() {
|
|
|
|
y.Foo = "foo"
|
|
|
|
y.Fii = "fii"
|
|
|
|
}
|
|
|
|
|
|
|
|
type Yi struct {
|
|
|
|
Foo string
|
|
|
|
Fii string
|
|
|
|
Fuu string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (y *Yi) SetDefaults() {
|
|
|
|
y.Foo = "foo"
|
|
|
|
y.Fii = "fii"
|
|
|
|
}
|