diff zs.go @ 25:42b0a9fa5883 draft

added word count and time to read functions
author zaitsev.serge
date Sun, 30 Aug 2015 12:42:22 +0000
parents d052f3a44195
children 1254e8cb6e75
line wrap: on
line diff
--- a/zs.go	Sun Aug 30 12:22:00 2015 +0000
+++ b/zs.go	Sun Aug 30 12:42:22 2015 +0000
@@ -304,6 +304,10 @@
 		fmt.Println(DateParse(args))
 	case "datefmt":
 		fmt.Println(DateFmt(args))
+	case "wc":
+		fmt.Println(WordCount(args))
+	case "timetoread":
+		fmt.Println(TimeToRead(args))
 	default:
 		err := run(path.Join(ZSDIR, cmd), args, Vars{}, os.Stdout)
 		if err != nil {