update

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 3 Imported by: 0

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

func (UpdateCommand) PreRun

func (c UpdateCommand) PreRun(cmd *cobra.Command, agrs []string) error

PreRun - @CobraPreRun command

func (UpdateCommand) Run

func (c UpdateCommand) Run(cmd *cobra.Command, agrs []string) error

Run - @CobraRun command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL