Skip to content

Releases: matzefriedrich/cobra-extensions

cobra-extensions v0.4.0

27 Nov 17:18
7f29ab9
Compare
Choose a tag to compare

Changes

  • Markdown Command: The markdown command has been added. It can be seamlessly linked to the root command and produces comprehensive documentation for all registered commands and subcommands in Markdown format. This is an excellent tool for enhancing documentation workflows!

  • Flexible Command Creation: The CreateTypedCommand function now supports options, providing greater command creation and configuration flexibility. This includes marking group commands as non-runnable by passing the predefined NonRunnable option, ensuring their representation in Markdown documentation is accurate and intuitive.

cobra-extensions v0.3.1

26 Sep 19:40
8bd0793
Compare
Choose a tag to compare
  • Implemented new tests, improving overall test coverage.
  • Updated dependencies to address security issues

cobra-extensions v0.3.0

25 Sep 22:59
55e96a4
Compare
Choose a tag to compare

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.

cobra-extensions v0.2.6

27 Aug 20:48
d748f61
Compare
Choose a tag to compare

Changes

  • Adds the NewRootCommand helper method to create root cobra.Command objects with the application name and description.
  • Changes the NewCommandLineApplication method to set the application name and description (required to generate proper app completion scripts).

cobra-extensions v0.2.5

12 Jun 18:32
d5a0938
Compare
Choose a tag to compare

Fixes

  • Extends the reflection module; it no longer panics on fields with an unsupported type

cobra-extensions v0.2.3

25 Apr 22:25
b1bd968
Compare
Choose a tag to compare

This release introduces new features and improvements, for instance:

  • The charmer module was added to tame cobra; use this module when defining hierarchal commands. The ability to use method chaining helps to keep the code clean.
  • You can now declare positional arguments in your command types and get values mapped to fields.

cobra-extensions v0.1.0

22 Apr 21:56
204ed20
Compare
Choose a tag to compare
Pre-release

Changes

  • Updates the README file