]> Nishi Git Mirror - aya.git/commitdiff
passing globals when running a plugin
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>
Sun, 30 Aug 2015 13:29:12 +0000 (15:29 +0200)
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>
Sun, 30 Aug 2015 13:29:12 +0000 (15:29 +0200)
zs.go

diff --git a/zs.go b/zs.go
index f38dbf5ff9908ebcbc4f36831ad658a960d6a2c4..534d5167ca7ac239fc2c6a09a0e00b1262efaa78 100644 (file)
--- 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)
                }