Documentation ¶ Index ¶ type Bool func (f *Bool) Add(cmds ...*cobra.Command) func (f *Bool) Get(cmd *cobra.Command, nullable bool) *bool type Flag func (f *Flag) Changed(cmd *cobra.Command) bool type Int func (f *Int) Add(cmds ...*cobra.Command) func (f *Int) Get(cmd *cobra.Command, nullable bool) *int type String func (f *String) Add(cmds ...*cobra.Command) func (f *String) Get(cmd *cobra.Command, nullable bool) *string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bool ¶ type Bool struct { *Flag Default bool // contains filtered or unexported fields } func (*Bool) Add ¶ func (f *Bool) Add(cmds ...*cobra.Command) func (*Bool) Get ¶ func (f *Bool) Get(cmd *cobra.Command, nullable bool) *bool type Flag ¶ type Flag struct { Name string ShortName string Description string Required bool } func (*Flag) Changed ¶ func (f *Flag) Changed(cmd *cobra.Command) bool type Int ¶ added in v0.4.0 type Int struct { *Flag Default int // contains filtered or unexported fields } func (*Int) Add ¶ added in v0.4.0 func (f *Int) Add(cmds ...*cobra.Command) func (*Int) Get ¶ added in v0.4.0 func (f *Int) Get(cmd *cobra.Command, nullable bool) *int type String ¶ type String struct { *Flag Default string // contains filtered or unexported fields } func (*String) Add ¶ func (f *String) Add(cmds ...*cobra.Command) func (*String) Get ¶ func (f *String) Get(cmd *cobra.Command, nullable bool) *string Source Files ¶ View all Source files flags.go Click to show internal directories. Click to hide internal directories.