Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DecorateConfig = decorate.Config{} DecorateCmd = &cobra.Command{ Use: "decorate", Short: "Rely on the decorator pattern to encapsulate the function call standardized log", Long: ``, Example: `igen decorate --help`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return nil }, RunE: func(cmd *cobra.Command, args []string) error { d := decorate.Default(DecorateConfig) d.Decorate() return nil }, } )
View Source
var ( ShowVersion bool RootCmd = &cobra.Command{ Use: "igen", Short: "", Long: ``, Example: `igen --help`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return nil }, RunE: func(cmd *cobra.Command, args []string) error { if ShowVersion { showVersion() } return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.