aboutsummaryrefslogtreecommitdiff
path: root/cmd/eno/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/eno/main.go')
-rw-r--r--cmd/eno/main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/eno/main.go b/cmd/eno/main.go
index 52aadf4..a1c113a 100644
--- a/cmd/eno/main.go
+++ b/cmd/eno/main.go
@@ -1,8 +1,16 @@
package main
-import "os"
+import (
+ "fmt"
+ "os"
+)
func main() {
+ if err := initConfig(); err != nil {
+ fmt.Fprintf(os.Stderr, "config error: %v\nrun 'eno init' to fix\n", err)
+ os.Exit(1)
+ }
+
if err := cobraCmd.Execute(); err != nil {
os.Exit(1)
}