From 326fb9c3d6ed958b12d559e1e11883183923684d Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 13 Jul 2022 11:20:58 -0500 Subject: [PATCH] :recycle: Use created variable for default values --- cmd/flag_values.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flag_values.go b/cmd/flag_values.go index 4196ddd..8f7b7fa 100644 --- a/cmd/flag_values.go +++ b/cmd/flag_values.go @@ -11,7 +11,7 @@ import ( var rawValues map[string]string func init() { - Command.Flags().StringToStringVarP(&rawValues, "value", "v", map[string]string{}, "Define a template variable. Can be used more than once.") + Command.Flags().StringToStringVarP(&rawValues, "value", "v", rawValues, "Define a template variable. Can be used more than once.") err := Command.RegisterFlagCompletionFunc("value", valueCompletion) if err != nil { panic(err)