Update RootCmd handle

This commit is contained in:
Blerim Sheqa 2019-08-15 14:10:49 +02:00
parent 9d6e58fa47
commit 1d0745bb25
1 changed files with 2 additions and 4 deletions

View File

@ -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})