fix: correct issue where output was not sent to stdout
This commit is contained in:
1 parent
79b344bbe4
commit
fe9472ff09
1 file changed
+5
-5
@@ -52,7 +52,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
println(length)
|
fmt.Printf("%v\n", length)
|
||||||
case "lrange":
|
case "lrange":
|
||||||
appName := flag.Arg(2)
|
appName := flag.Arg(2)
|
||||||
property := flag.Arg(3)
|
property := flag.Arg(3)
|
||||||
@@ -63,7 +63,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
println(line)
|
fmt.Printf("%v\n", line)
|
||||||
}
|
}
|
||||||
case "lindex":
|
case "lindex":
|
||||||
appName := flag.Arg(2)
|
appName := flag.Arg(2)
|
||||||
@@ -75,7 +75,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
println(propertyValue)
|
fmt.Printf("%v\n", propertyValue)
|
||||||
case "lismember":
|
case "lismember":
|
||||||
appName := flag.Arg(2)
|
appName := flag.Arg(2)
|
||||||
property := flag.Arg(3)
|
property := flag.Arg(3)
|
||||||
@@ -127,7 +127,7 @@ func main() {
|
|||||||
property := flag.Arg(3)
|
property := flag.Arg(3)
|
||||||
value := common.PropertyGet(pluginName, appName, property)
|
value := common.PropertyGet(pluginName, appName, property)
|
||||||
if value != "" {
|
if value != "" {
|
||||||
println(value)
|
fmt.Printf("%v\n", value)
|
||||||
}
|
}
|
||||||
case "get-with-default":
|
case "get-with-default":
|
||||||
appName := flag.Arg(2)
|
appName := flag.Arg(2)
|
||||||
@@ -135,7 +135,7 @@ func main() {
|
|||||||
defaultValue := flag.Arg(4)
|
defaultValue := flag.Arg(4)
|
||||||
value := common.PropertyGetDefault(pluginName, appName, property, defaultValue)
|
value := common.PropertyGetDefault(pluginName, appName, property, defaultValue)
|
||||||
if value != "" {
|
if value != "" {
|
||||||
println(value)
|
fmt.Printf("%v\n", value)
|
||||||
}
|
}
|
||||||
case "get-all":
|
case "get-all":
|
||||||
appName := flag.Arg(2)
|
appName := flag.Arg(2)
|
||||||
|
|||||||
Reference in new issue
Block a user