summaryrefslogtreecommitdiff
path: root/cmd/planr/main.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 02:41:21 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 02:41:21 -0500
commita6f45bfa932b9e8e2393b5643e2bc38e44ba76df (patch)
treeb823cbca417ea4753f6dfe87ba986d2023ecb39a /cmd/planr/main.go
parent4a6efc74aebcc689a734d05bc8435eb9560340e1 (diff)
downloaddeb-planr-a6f45bfa932b9e8e2393b5643e2bc38e44ba76df.tar.xz
deb-planr-a6f45bfa932b9e8e2393b5643e2bc38e44ba76df.zip
Add config w/ version information
Diffstat (limited to 'cmd/planr/main.go')
-rw-r--r--cmd/planr/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/planr/main.go b/cmd/planr/main.go
index d7f62aa..ce20811 100644
--- a/cmd/planr/main.go
+++ b/cmd/planr/main.go
@@ -79,6 +79,8 @@ func main() {
runner := getConfiguredRunner()
+ cfg := planr.DecodeConfig(runner.ConfigDir())
+
subcommand := flag.Arg(0)
subargs := flag.Args()[1:]
@@ -86,9 +88,9 @@ func main() {
case "version":
fmt.Printf("%s\n", planr.VERSION)
case "build":
- sub.Build(runner, subargs)
+ sub.Build(runner, subargs, cfg)
case "evaluate", "eval":
- sub.Evaluate(runner, subargs)
+ sub.Evaluate(runner, subargs, cfg)
case "clean":
sub.Clean(runner, subargs)
case "config":