Private
Public Access
1
0

Minor refactor

- Use init() function to set up commands
- Expose an Execute() function instead of the root command
This commit is contained in:
2023-11-14 06:00:51 +00:00
parent dd5f166767
commit 6599af042b
2 changed files with 19 additions and 17 deletions

View File

@@ -8,9 +8,8 @@ import (
)
func main() {
cmd := cli.NewRootCmd()
if err := cmd.Execute(); err != nil {
fmt.Println(err)
if err := cli.Execute(); err != nil {
fmt.Fprint(os.Stderr, err)
os.Exit(1)
}
}