chore(log): use PersistentPreRunE to setup logging in a cleaner way

This commit is contained in:
2022-03-22 00:34:47 +00:00
parent bc69c016a3
commit dd5238f9ff
7 changed files with 15 additions and 17 deletions

View File

@@ -7,8 +7,10 @@ import (
func NewEvm(mgr *manager.Manager) (*cobra.Command, error) {
cmd := &cobra.Command{
Use: "evm",
Short: "A simple and opinionated Emacs Version Manager and build tool",
Use: "evm",
Short: "A simple and opinionated Emacs Version Manager " +
"and build tool",
PersistentPreRunE: PersistentPreRunE,
}
cmd.PersistentFlags().StringP(