From: James Mills <1290234+prologic@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:22:21 +0000 (+1000) Subject: Fix getVars() X-Git-Tag: 0.4.0~5 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5b116b3f07320d17f0f6d173b21c77538ee33886;p=aya.git Fix getVars() --- 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 {