diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-02 03:14:47 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-02 03:14:47 -0500 |
commit | d078f6dc10eb265a5d88cd96adf86173d6d3ba2e (patch) | |
tree | ed8bc2405b60b2ae31405c3d8e27b24fda3ac003 /cmd/planr/sub/build.go | |
parent | 96701f87a114557f1a013229e889b4b726aa7dc1 (diff) | |
download | deb-planr-d078f6dc10eb265a5d88cd96adf86173d6d3ba2e.tar.xz deb-planr-d078f6dc10eb265a5d88cd96adf86173d6d3ba2e.zip |
Make adapters and internals complient with new directory structure
Diffstat (limited to 'cmd/planr/sub/build.go')
-rw-r--r-- | cmd/planr/sub/build.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/planr/sub/build.go b/cmd/planr/sub/build.go index 58c3a38..a8b19ec 100644 --- a/cmd/planr/sub/build.go +++ b/cmd/planr/sub/build.go @@ -3,17 +3,21 @@ 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) { - - rd := planr.RubricDir() - - Runner().Build(rd) + Runner().Build() } |