Skip to content

cobra-extensions v0.3.0

Compare
Choose a tag to compare
@matzefriedrich matzefriedrich released this 25 Sep 22:59
· 14 commits to main since this release
55e96a4

This release significantly refactors the entire cobra-extensions package, focusing on simplifying its usability by reducing the number of exported types and functions. Key functionality related to reflection and struct-tag evaluation for automatically setting up Cobra command declarations has been moved to internal packages. This reduces the package's surface, making it easier to work with and maintain. Additionally, documentation comments have been added where missing to improve clarity and developer experience.

Changes

  • Introduced the types package to centralize command type definitions.
  • Updated import paths and references across the project to use the new types package.
  • Removed type definitions from the commands and reflection packages; moved interface types to the new types package.
  • Made the reflection package internal, as it now supports the internal functionality of the extensions package and is not intended for external use.
  • Upgraded Go SDK from version 1.21 to 1.23.