passing globals when running a plugin

This commit is contained in:
Serge A. Zaitsev 2015-08-30 15:29:12 +02:00
parent 2a61f06e5a
commit 37c0ffcf94
1 changed files with 1 additions and 1 deletions

2
zs.go
View File

@ -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)
}