Documentation
¶
Index ¶
- Constants
- func BuildUse(args ...string) string
- func ExecuteRequireNoError(cmd *cobra.Command)
- func Fatal(cmd *cobra.Command, err error)
- func InitDefaultCmdRoot(shortName string, opts ...Option) (*cobra.Command, error)
- func LogCommand(cmd *cobra.Command, args []string)
- func RequireNoError(cmd *cobra.Command, err error)
- type ActionFunc
- type Option
Constants ¶
View Source
const ( DefaultFlagDebugName = "debug" DefaultFlagDebugDescription = "debug mode" )
Variables ¶
This section is empty.
Functions ¶
func ExecuteRequireNoError ¶
func InitDefaultCmdRoot ¶
func LogCommand ¶
func RequireNoError ¶
Types ¶
type ActionFunc ¶
func MultipleActions ¶
func MultipleActions(actions ...ActionFunc) ActionFunc
type Option ¶
type Option = itbasisCoreOption.Option[cobra.Command]
func WithCustomVersion ¶
func WithCustomVersion(version itbasisCoreVersion.Version) Option
func WithDefaultErr ¶
func WithDefaultErr() Option
func WithDefaultFlagDebug ¶
func WithDefaultFlagDebug() Option
func WithDefaultOut ¶
func WithDefaultOut() Option
func WithDefaultVersion ¶
func WithDefaultVersion() Option
func WithFlagDebug ¶
Click to show internal directories.
Click to hide internal directories.