Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateCommand ¶
type UpdateCommand struct { Flag1 string `flag:"first" short:"f" description:"Flag 1 description"` Flag2 int `flag:"second" short:"s" default:"42" description:"Flag 2 description"` Flag3 uint8 `flag:"third" short:"t" default:"8" description:"Flag 3 description"` Flag4 float64 `flag:"fourth,persist" default:"3.14" description:"PI"` Flag5 bool `flag:"fifth"` Flag6 uint16 `flag:"sixth"` Dur time.Duration `flag:"dur,persist" short:"d" default:"12s" description:"Duration flag description"` }
UpdateCommand with @Cobra(
usage = "cli update", example = "cli update [-F field -V value] resource", short = "Update command of the application (short)", long = "Update command of the application (long)",
)
func (UpdateCommand) PostRun ¶
func (c UpdateCommand) PostRun(cmd *cobra.Command, agrs []string) error
PostRun - @CobraPostRun command
Click to show internal directories.
Click to hide internal directories.