Mercurial > yakumo_izuru > aya
comparison zs.go @ 27:1254e8cb6e75 draft
passing globals when running a plugin
author | zaitsev.serge |
---|---|
date | Sun, 30 Aug 2015 13:29:12 +0000 |
parents | 42b0a9fa5883 |
children | 5ee89d094279 |
comparison
equal
deleted
inserted
replaced
26:d966bcb229c0 | 27:1254e8cb6e75 |
---|---|
307 case "wc": | 307 case "wc": |
308 fmt.Println(WordCount(args)) | 308 fmt.Println(WordCount(args)) |
309 case "timetoread": | 309 case "timetoread": |
310 fmt.Println(TimeToRead(args)) | 310 fmt.Println(TimeToRead(args)) |
311 default: | 311 default: |
312 err := run(path.Join(ZSDIR, cmd), args, Vars{}, os.Stdout) | 312 err := run(path.Join(ZSDIR, cmd), args, globals(), os.Stdout) |
313 if err != nil { | 313 if err != nil { |
314 log.Println("ERROR:", err) | 314 log.Println("ERROR:", err) |
315 } | 315 } |
316 } | 316 } |
317 } | 317 } |