github spf13/cobra v1.8.0

latest release: v1.8.1
12 months ago

✨ Features

  • Support usage as plugin for tools like kubectl by @nirs in #2018 - this means that programs that utilize a "plugin-like" structure have much better support and usage (like for completions, command paths, etc.)
  • Move documentation sources to site/content by @umarcor in #1428
  • Add 'one required flag' group by @marevers in #1952 - this includes a new MarkFlagsOneRequired API for flags which can be used to mark a flag group as required and cause command failure if at least one is not used when invoked.
  • Customizable error message prefix by @5ouma in #2023 - This adds the SetErrPrefix and ErrPrefix APIs on the Command struct to allow for setting a custom prefix for errors
  • feat: add getters for flag completions by @avirtopeanu-ionos in #1943
  • Feature: allow running persistent run hooks of all parents by @vkhoroz in #2044
  • Improve API to get flag completion function by @marckhouzam in #2063

🐛 Bug fixes

🔧 Maintenance

🧪 Testing & CI/CD

✏️ Documentation

  • doc: fix typo, Deperecated -> Deprecated by @callthingsoff in #2000
  • Add notes to doc about the execution condition of *PreRun and *PostRun functions by @haoming29 in #2041

Thank you everyone who contributed to this release and all your hard work! Cobra and this community would never be possible without all of you!!!! 🐍

Full Changelog: v1.7.0...v1.8.0

Don't miss a new cobra release

NewReleases is sending notifications on new releases.