8d7eccad5d
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
25 lines
386 B
Go
25 lines
386 B
Go
package cli
|
|
|
|
type Yo struct {
|
|
Foo string `description:"Foo description"`
|
|
Fii string `description:"Fii description"`
|
|
Fuu string `description:"Fuu description"`
|
|
Yi *Yi `label:"allowEmpty"`
|
|
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"
|
|
}
|