 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFlags ¶
func RegisterFlags(cmd *cobra.Command, flags ...FlagRegisterer) error
Types ¶
type CommandExitCode ¶
type CommandExitCode struct {
	ExitCode int
}
    func (CommandExitCode) Error ¶
func (c CommandExitCode) Error() string
type Flag ¶
type Flag[T any] struct { Name string Short string Description string Default T Persistent bool Check func(in T) error Deprecated *string Hidden bool }
func (Flag[T]) AsInterface ¶
func (f Flag[T]) AsInterface() FlagInterface[T]
type FlagInterface ¶
type FlagInterface[T any] interface { FlagRegisterer Get(cmd *cobra.Command) (T, error) }
type FlagRegisterer ¶
type RunE ¶
func ValidateFlags ¶
func ValidateFlags(flags ...FlagRegisterer) RunE
 Click to show internal directories. 
   Click to hide internal directories.