Releases: matzefriedrich/cobra-extensions
cobra-extensions v0.4.0
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 predefinedNonRunnable
option, ensuring their representation in Markdown documentation is accurate and intuitive.
cobra-extensions v0.3.1
- Implemented new tests, improving overall test coverage.
- Updated dependencies to address security issues
cobra-extensions v0.3.0
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
andreflection
packages; moved interface types to the newtypes
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
Changes
- Adds the
NewRootCommand
helper method to create rootcobra.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
Fixes
- Extends the
reflection
module; it no longer panics on fields with an unsupported type
cobra-extensions v0.2.3
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
Changes
- Updates the README file