From f01b6dfd06ca18da1df7d0c64586aeb5496878ee Mon Sep 17 00:00:00 2001 From: Googlom Date: Tue, 15 Jul 2025 15:30:33 +0300 Subject: [PATCH] some fixes --- generator/helper/helper.go | 4 ++-- generator/helper/resources.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/generator/helper/helper.go b/generator/helper/helper.go index a1b6fbdec..777c33eab 100644 --- a/generator/helper/helper.go +++ b/generator/helper/helper.go @@ -100,7 +100,7 @@ func (cfg *{{ .StepName }}Options) readInValues() error { // {{.CobraCmdFuncName}} {{.Short}} func {{.CobraCmdFuncName}}() *cobra.Command { var stepConfig {{.StepName}}Options - var commonPipelineEnvironment golangBuildCommonPipelineEnvironment + var commonPipelineEnvironment {{ .StepName }}CommonPipelineEnvironment var dummyTelemetryData telemetry.CustomData var {{.StepName}}Cmd = &cobra.Command{ @@ -131,7 +131,7 @@ func {{.CobraCmdFuncName}}() *cobra.Command { return {{.StepName}}Cmd } -func defineInputSources(stepCmd *cobra.Command, stepConfig *golangBuildOptions) { +func defineInputSources(stepCmd *cobra.Command, stepConfig *{{ .StepName }}Options) { // General configuration stepCmd.Flags().BoolVarP(&stepConfig.Verbose, "verbose", "v", false, "Enables verbose output for the step.") diff --git a/generator/helper/resources.go b/generator/helper/resources.go index 80eca1399..9ba79ada9 100644 --- a/generator/helper/resources.go +++ b/generator/helper/resources.go @@ -172,6 +172,7 @@ func (i *{{ .StepName }}{{ .Name | title}}) persist(path, resourceName string) { // StructString returns the golang coding for the struct definition of the InfluxResource func (i *InfluxResource) StructString() (string, error) { + return "", nil // disable this resource funcMap := template.FuncMap{ "title": piperutils.Title, "golangName": golangName, @@ -254,6 +255,7 @@ func (p *ReportsResource) StructName() string { // StructString returns the golang coding for the struct definition of the environment resource func (p *ReportsResource) StructString() (string, error) { + return "", nil // disable this resource funcMap := template.FuncMap{ "title": piperutils.Title, "golangName": golangName,