Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
func (*Address) MarshalFlag ¶
type AddressCommand ¶
type AddressCommand struct {
Address Address `flag:"addr,required" short:"a" description:"Address separated by comma (Example: Some street, 14)"`
}
AddressCommand with @Cobra(
usage = "cli update address", example = "cli update address -a 'Some street, 14'", short = "Update address command of the application (short)", long = "Update address command of the application (long)",
)
type UserCommand ¶
type UserCommand struct { Gender Gender `flag:"gender,required" short:"g" description:"User gender, one of: male, female"` FirstName string `flag:"name,required" short:"n" description:"User name"` LastName string `flag:"lastname" short:"l" description:"User last name"` State State `flag:"state,required" short:"s" description:"State is a value from 1 to 5"` PI float64 `flag:"fourth,inherited"` }
UserCommand with @Cobra(
usage = "cli update user", example = "cli update user -g male -n John -l Doe -s 5", short = "Get user command of the application (short)", long = "Get user command of the application (long)",
)
Click to show internal directories.
Click to hide internal directories.