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 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 } func (*Flag) Changed ¶ func (f *Flag) Changed(cmd *cobra.Command) bool 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.