mirror of
https://git.mills.io/prologic/zs.git
synced 2024-11-08 03:07:57 -05:00
Fix getVars()
This commit is contained in:
parent
16a58ffa2d
commit
5b116b3f07
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…
Reference in New Issue
Block a user