x-pack/agentbeat/cmd/prepare_root_command_fips.go (22 lines of code) (raw):

// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. //go:build requirefips package cmd import ( "github.com/spf13/cobra" auditbeat "github.com/elastic/beats/v7/x-pack/auditbeat/cmd" filebeat "github.com/elastic/beats/v7/x-pack/filebeat/cmd" metricbeat "github.com/elastic/beats/v7/x-pack/metricbeat/cmd" ) func prepareRootCommand() *cobra.Command { rootCmd := &cobra.Command{ Use: "agentbeat", Short: "Combined beat ran only by the Elastic Agent", Long: `Combines auditbeat, filebeat and metricbeat into a single agentbeat binary.`, Example: "agentbeat filebeat run", } rootCmd.AddCommand( prepareCommand(auditbeat.RootCmd), prepareCommand(filebeat.Filebeat()), prepareCommand(metricbeat.Initialize()), ) return rootCmd }