summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index c25d5e5..3b707ff 100644
--- a/main.go
+++ b/main.go
@@ -8,6 +8,7 @@ import (
"os"
"unicode"
+ "go.wit.com/lib/env"
"go.wit.com/lib/protobuf/argvpb"
"go.wit.com/log"
)
@@ -18,7 +19,10 @@ var resources embed.FS
func main() {
me = new(mainType)
argvpb.Init(&argv, APPNAME, BUILDTIME, VERSION) // adds shell auto-complete
- me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic
+ env.LoadENV("~/.config/witrc")
+ if env.Verbose() {
+ env.PrintTable()
+ }
if argvpb.GetCmd() == "" {
// user didn't enter a sub command