From 5b116b3f07320d17f0f6d173b21c77538ee33886 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Thu, 30 Mar 2023 22:22:21 +1000 Subject: [PATCH] Fix getVars() --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 74f0c08..2e21264 100644 --- a/main.go +++ b/main.go @@ -246,7 +246,7 @@ If the name of variables (optional) are passed as additional arguments, only tho are display instead of all variables (the default behavior).`, Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - var w io.Writer = &bytes.Buffer{} + s := "" vars, _, err := getVars(args[0], globals()) if err != nil {