feat: add list-length method to shell functions

This commit is contained in:
Jose Diaz-Gonzalez
2019-11-27 17:08:18 -05:00
parent e3f0160e5f
commit 79b344bbe4
3 changed files with 35 additions and 2 deletions

View File

@@ -46,13 +46,13 @@ func main() {
case "llen":
appName := flag.Arg(2)
property := flag.Arg(3)
lines, err := common.PropertyListGet(pluginName, appName, property)
length, err := common.PropertyListLength(pluginName, appName, property)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
println(len(lines))
println(length)
case "lrange":
appName := flag.Arg(2)
property := flag.Arg(3)