summaryrefslogtreecommitdiff
path: root/pkg/rtree/main.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-05-09 22:00:15 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-05-09 22:00:15 +0200
commit58a4af83e0caf09744dd698b5be937205b81e733 (patch)
treebcb6b4e587baaabce07c67e971e8459445eef367 /pkg/rtree/main.go
parenta92faf7689fa01595fd613ddd3880e9c301ed558 (diff)
downloadgofu-58a4af83e0caf09744dd698b5be937205b81e733.tar.gz
refactor package rtree towards testability
Diffstat (limited to 'pkg/rtree/main.go')
-rw-r--r--pkg/rtree/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/rtree/main.go b/pkg/rtree/main.go
index 581fa7e..f08126e 100644
--- a/pkg/rtree/main.go
+++ b/pkg/rtree/main.go
@@ -27,6 +27,10 @@ import (
//Exec executes the rtree applet and does not return. The argument is os.Args
//minus the leading "rtree" or "gofu rtree".
func Exec(args []string) int {
+ if !Init() {
+ return 1
+ }
+
if len(args) == 0 {
return usage()
}