diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 04:30:33 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 04:30:33 -0500 |
commit | 62e85f40923b3485ba60766052de7150acf039c5 (patch) | |
tree | bb9e59fa8af4bb95721928c5fc787a4ae3c422c2 /cmd | |
parent | a6f45bfa932b9e8e2393b5643e2bc38e44ba76df (diff) | |
download | deb-planr-62e85f40923b3485ba60766052de7150acf039c5.tar.xz deb-planr-62e85f40923b3485ba60766052de7150acf039c5.zip |
Add bash adapter
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/planr/main.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/planr/main.go b/cmd/planr/main.go index ce20811..d250bbd 100644 --- a/cmd/planr/main.go +++ b/cmd/planr/main.go @@ -1,7 +1,6 @@ package main -import ( - "flag" +import ( "flag" "fmt" "io" "log" @@ -10,6 +9,7 @@ import ( "golang.flu0r1ne.net/planr" "golang.flu0r1ne.net/planr/adapters/gtest" + "golang.flu0r1ne.net/planr/adapters/bash" "golang.flu0r1ne.net/planr/cmd/planr/sub" ) @@ -28,14 +28,15 @@ func dieUsage() { os.Exit(1) } -var src = flag.String("srcdir", "", "source directory") -var config = flag.String("configdir", "", "config directory") -var build = flag.String("builddir", "", "build directory") +var src = flag.String("srcdir", "", "source directory") +var config = flag.String("configdir", "", "config directory") +var build = flag.String("builddir", "", "build directory") var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") func getConfiguredRunner() planr.Runner { r := planr.ConfigureRunner() r = planr.RegisterAdapter(r, gtest.NewAdapter()) + r = planr.RegisterAdapter(r, bash.NewAdapter()) if wd, err := os.Getwd(); err == nil { r = planr.SetConfigDirFromTree(r, wd) |