mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-29 16:54:02 +02:00
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…
x
Reference in New Issue
Block a user