Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence some usage and error logging in Execute #168

Closed
wants to merge 1 commit into from
Closed

Silence some usage and error logging in Execute #168

wants to merge 1 commit into from

Commits on Oct 17, 2015

  1. Silence some usage and error logging in Execute

    `RunE` was introduced on `Command` to support centralized error handling.
    
    The errors returned from `RunE` is, however, still logged by Cobra, and there is no easy way to toogle the usage logging on a case-by-case basis (other than the brutal `os.Exit(-1)`.
    
    This commit introduces two small interfaces that enables end users to signal the behavior they want from Cobra in this area.
    bep committed Oct 17, 2015
    Configuration menu
    Copy the full SHA
    f03a2c5 View commit details
    Browse the repository at this point in the history