diff options
| author | ishaan <contact@ishaan.cc> | 2026-07-12 16:41:00 +0530 |
|---|---|---|
| committer | ishaan <contact@ishaan.cc> | 2026-07-12 16:41:00 +0530 |
| commit | 050db499d18c61d90a68096027ac0d5aaa842f57 (patch) | |
| tree | 2d0cd6db07407c2d44c8ea7ec899fb3088766d01 /cmd/eno/main.go | |
| parent | 7b5328536a82755c2724f2075c31035d709588df (diff) | |
add init/new/edit subcommands, config, mlock/cleared sensitive info
Diffstat (limited to 'cmd/eno/main.go')
| -rw-r--r-- | cmd/eno/main.go | 10 |
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) } |