From: Serge A. Zaitsev Date: Sun, 30 Aug 2015 13:29:12 +0000 (+0200) Subject: passing globals when running a plugin X-Git-Tag: 0.0.1~22 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=37c0ffcf949d9d559946b10005346da4ae70c182;p=aya.git passing globals when running a plugin --- diff --git a/zs.go b/zs.go index f38dbf5..534d516 100644 --- a/zs.go +++ b/zs.go @@ -309,7 +309,7 @@ func main() { case "timetoread": fmt.Println(TimeToRead(args)) default: - err := run(path.Join(ZSDIR, cmd), args, Vars{}, os.Stdout) + err := run(path.Join(ZSDIR, cmd), args, globals(), os.Stdout) if err != nil { log.Println("ERROR:", err) }