Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "show version", Long: `show the version details of dragonfly.`, Args: cobra.NoArgs, DisableAutoGenTag: true, SilenceUsage: true, Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Major:%s Minor:%s\n", version.Major, version.Minor) fmt.Printf("GitVersion:%s\n", version.GitVersion) fmt.Printf("Platform:%s GoVersion:%s BuildDay:%s\n", version.Platform, version.GoVersion, version.BuildDay) }, }
Functions ¶
func InitCobra ¶
InitCobra initializes flags binding and common sub cmds. config is a pointer to configuration struct.
func InitMonitor ¶
InitMonitor initialize monitor and return final handler
func SetupQuitSignalHandler ¶
func SetupQuitSignalHandler(handler func())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.