Update RootCmd handle
This commit is contained in:
parent
9d6e58fa47
commit
1d0745bb25
|
@ -4,13 +4,11 @@ import (
|
||||||
"github.com/icinga/icingabeat/beater"
|
"github.com/icinga/icingabeat/beater"
|
||||||
|
|
||||||
cmd "github.com/elastic/beats/libbeat/cmd"
|
cmd "github.com/elastic/beats/libbeat/cmd"
|
||||||
|
"github.com/elastic/beats/libbeat/cmd/instance"
|
||||||
// Register the includes.
|
|
||||||
_ "github.com/icinga/icingabeat/include"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Name of this beat
|
// Name of this beat
|
||||||
var Name = "icingabeat"
|
var Name = "icingabeat"
|
||||||
|
|
||||||
// RootCmd to handle beats cli
|
// 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