diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 18:13:49 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 18:13:49 -0500 |
commit | 38912d85394604fe9cc238ef6eb9f6e75ceb38f9 (patch) | |
tree | 861fc3af5d44ef8fbad738638f498c6e63bd1747 /cmd/planr/sub/build.go | |
parent | aff7b69cab2ac1d09b47f28c6fa653febd8595ea (diff) | |
download | deb-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.go | 17 |
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(>est.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() } |