mirror of
https://git.mills.io/prologic/zs
synced 2025-04-10 04:21:03 +00:00
Fix getVars()
This commit is contained in:
parent
16a58ffa2d
commit
5b116b3f07
1 changed files with 1 additions and 1 deletions
2
main.go
2
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).`,
|
are display instead of all variables (the default behavior).`,
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
var w io.Writer = &bytes.Buffer{}
|
s := ""
|
||||||
|
|
||||||
vars, _, err := getVars(args[0], globals())
|
vars, _, err := getVars(args[0], globals())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue