summaryrefslogtreecommitdiff
path: root/cmd/planr/sub/build.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 18:13:49 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 18:13:49 -0500
commit38912d85394604fe9cc238ef6eb9f6e75ceb38f9 (patch)
tree861fc3af5d44ef8fbad738638f498c6e63bd1747 /cmd/planr/sub/build.go
parentaff7b69cab2ac1d09b47f28c6fa653febd8595ea (diff)
downloaddeb-planr-38912d85394604fe9cc238ef6eb9f6e75ceb38f9.tar.xz
deb-planr-38912d85394604fe9cc238ef6eb9f6e75ceb38f9.zip
Add config command to retrieve configuration values and clean command to clean build files
Diffstat (limited to 'cmd/planr/sub/build.go')
-rw-r--r--cmd/planr/sub/build.go17
1 files changed, 2 insertions, 15 deletions
diff --git a/cmd/planr/sub/build.go b/cmd/planr/sub/build.go
index 142ef1c..4a1cda9 100644
--- a/cmd/planr/sub/build.go
+++ b/cmd/planr/sub/build.go
@@ -2,22 +2,9 @@ package sub
import (
"golang.flu0r1ne.net/planr"
- "golang.flu0r1ne.net/planr/adapters/gtest"
- "os"
)
-func Runner() planr.Runner {
- r := planr.Runner {}
- r.RegisterAdapter(&gtest.GtestAdapter{})
-
- if wd, err := os.Getwd(); err == nil {
- r.SetConfigDirFromTree(wd)
- }
-
- return r
-}
-
-func Build(params []string) {
- Runner().Build()
+func Build(runner planr.Runner, params []string) {
+ runner.Build()
}