summaryrefslogtreecommitdiff
path: root/cmd/planr/sub/build.go
blob: 142ef1cbcb6be611de63a9581d635c4068aec52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()
}