mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-15 14:58:08 +02:00
21 lines
460 B
Go
21 lines
460 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/elastic/beats/libbeat/beat"
|
|
"github.com/elastic/beats/libbeat/cmd/test"
|
|
)
|
|
|
|
func genTestCmd(name, beatVersion string, beatCreator beat.Creator) *cobra.Command {
|
|
exportCmd := &cobra.Command{
|
|
Use: "test",
|
|
Short: "Test config",
|
|
}
|
|
|
|
exportCmd.AddCommand(test.GenTestConfigCmd(name, beatVersion, beatCreator))
|
|
exportCmd.AddCommand(test.GenTestOutputCmd(name, beatVersion))
|
|
|
|
return exportCmd
|
|
}
|