diff --git a/x-pack/functionbeat/cmd/provider_cmd.go b/x-pack/functionbeat/cmd/provider_cmd.go index 8f428b79048..f740ca3c146 100644 --- a/x-pack/functionbeat/cmd/provider_cmd.go +++ b/x-pack/functionbeat/cmd/provider_cmd.go @@ -105,7 +105,7 @@ func genPackageCmd() *cobra.Command { return cmd } -func genExportTemplateCmd() *cobra.Command { +func genExportFunctionCmd() *cobra.Command { return &cobra.Command{ Use: "function", Short: "Export function template", diff --git a/x-pack/functionbeat/cmd/root.go b/x-pack/functionbeat/cmd/root.go index 9bdc022239f..c10b9315ffa 100644 --- a/x-pack/functionbeat/cmd/root.go +++ b/x-pack/functionbeat/cmd/root.go @@ -33,5 +33,5 @@ func init() { func addBeatSpecificSubcommands() { RootCmd.ExportCmd.Short = "Export current config, index template or function" - RootCmd.ExportCmd.AddCommand(genExportTemplateCmd()) + RootCmd.ExportCmd.AddCommand(genExportFunctionCmd()) }