Skip to content
Myr

cmd: Don't print errors from execute to prevent duplication of errors

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent c446db2 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:cobra/cmd/root.go+1 added-3 removed
34 unmodified lines
35)3637// Execute executes the root command.38func Execute() {39 if err := rootCmd.Execute(); err != nil {40 er(err)41 }39 rootCmd.Execute()40}4142func init() {43 initViper()
37 unmodified lines