From 8183ff7b8005c7a581f4c141523adf257c34c8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Budzy=C5=84ski?= Date: Wed, 18 Dec 2024 11:29:54 +0100 Subject: [PATCH] rename... --- pkg/sdk/poc/generator/template_executors.go | 2 +- pkg/sdk/poc/generator/templates.go | 6 +++--- ...{resource_helper_method.tmpl => show_object_method.tmpl} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename pkg/sdk/poc/generator/templates/{resource_helper_method.tmpl => show_object_method.tmpl} (100%) diff --git a/pkg/sdk/poc/generator/template_executors.go b/pkg/sdk/poc/generator/template_executors.go index b23084b4f4..cbe68fd120 100644 --- a/pkg/sdk/poc/generator/template_executors.go +++ b/pkg/sdk/poc/generator/template_executors.go @@ -28,7 +28,7 @@ func GenerateInterface(writer io.Writer, def *Interface) { } func generateShowObjectMethods(writer io.Writer, hm *ShowObjectMethod) { - printTo(writer, ResourceHelperMethodTemplate, hm) + printTo(writer, ShowObjectMethodTemplate, hm) } func generateOptionsStruct(writer io.Writer, operation *Operation) { diff --git a/pkg/sdk/poc/generator/templates.go b/pkg/sdk/poc/generator/templates.go index a4e8e505f8..c10b3cc157 100644 --- a/pkg/sdk/poc/generator/templates.go +++ b/pkg/sdk/poc/generator/templates.go @@ -24,9 +24,9 @@ var ( structTemplateContent string StructTemplate, _ = template.New("structTemplate").Parse(structTemplateContent) - //go:embed templates/resource_helper_method.tmpl - resourceHelperMethodTemplateContent string - ResourceHelperMethodTemplate, _ = template.New("helperMethodTemplate").Parse(resourceHelperMethodTemplateContent) + //go:embed templates/show_object_method.tmpl + showObjectMethodTemplateContent string + ShowObjectMethodTemplate, _ = template.New("helperMethodTemplate").Parse(showObjectMethodTemplateContent) //go:embed templates/dto_declarations.tmpl dtoDeclarationsTemplateContent string diff --git a/pkg/sdk/poc/generator/templates/resource_helper_method.tmpl b/pkg/sdk/poc/generator/templates/show_object_method.tmpl similarity index 100% rename from pkg/sdk/poc/generator/templates/resource_helper_method.tmpl rename to pkg/sdk/poc/generator/templates/show_object_method.tmpl