Update RootCmd handle
This commit is contained in:
parent
9d6e58fa47
commit
1d0745bb25
|
@ -4,13 +4,11 @@ import (
|
|||
"github.com/icinga/icingabeat/beater"
|
||||
|
||||
cmd "github.com/elastic/beats/libbeat/cmd"
|
||||
|
||||
// Register the includes.
|
||||
_ "github.com/icinga/icingabeat/include"
|
||||
"github.com/elastic/beats/libbeat/cmd/instance"
|
||||
)
|
||||
|
||||
// Name of this beat
|
||||
var Name = "icingabeat"
|
||||
|
||||
// RootCmd to handle beats cli
|
||||
var RootCmd = cmd.GenRootCmd(Name, "", beater.New)
|
||||
var RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{Name: Name})
|
Loading…
Reference in New Issue