From 48604aefd010da8731bb2f2d0579e25d8a34107b Mon Sep 17 00:00:00 2001 From: PiMaDaum Date: Sun, 29 Jan 2023 20:14:21 +0100 Subject: [PATCH] Make slice of cel environment options private --- resource/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/list.go b/resource/list.go index 0c03cd8..719239c 100644 --- a/resource/list.go +++ b/resource/list.go @@ -28,7 +28,7 @@ var ResourceListCmd = &cobra.Command{ RunE: ResourceList, } -var CelEnvOptions = []cel.EnvOption{ +var celEnvOptions = []cel.EnvOption{ cel.Variable("ID", cel.StringType), cel.Variable("FolderParentID", cel.StringType), cel.Variable("Name", cel.StringType), @@ -182,7 +182,7 @@ func filterResources(resources *[]api.Resource, celCmd string, ctx context.Conte return *resources, nil } - env, err := cel.NewEnv(CelEnvOptions...) + env, err := cel.NewEnv(celEnvOptions...) if err != nil { return nil, err }