logmania/cmd/root.go

23 lines
517 B
Go
Raw Normal View History

2017-10-25 00:36:16 +02:00
package cmd
import (
2019-06-20 09:25:43 +02:00
"github.com/bdlm/log"
2017-10-25 00:36:16 +02:00
"github.com/spf13/cobra"
)
// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "logmania",
Short: "logging centralize",
Long: `centralize logging manager`,
}
// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := RootCmd.Execute(); err != nil {
log.Panic(err)
}
}