Command errors print usage and skip post-run hooks
Returning an error from a command's run function prints usage and skips post-run hooks, with no documented exit pattern.
Tier II · Emerging Problems that are still building up.
3 public reports · first reported 19 July 2019 · last reported 14 March 2024
What's going wrong
Developers writing Cobra commands find it unclear how to fail with a non-zero exit code.
AI-assisted: written with the help of AI from the reports. The idea report has the full summary.
In the idea report
- The full summary.
- The products the 3 reports are about, and how many came each month.
- Related problems.
No business has been found with this problem yet, so the report has no contacts. All sales are final — no refunds. Pricing.