/cobrax

Library with helpers for https://github.com/spf13/cobra. Makes commands composable and reusable, and makes testing easier.

Primary LanguageGoApache License 2.0Apache-2.0

Cobrax - Helpers for spf13/cobra

This project provides helpers for the commonly used spf13/cobra library. It specifically aims to make commands composable and reusable, as well as to make testing easier.

Installation

go get github.com/zepatrik/cobrax

Usage

Extensive documentation is available on https://pkg.go.dev/github.com/zepatrik/cobrax.

About

This project is based on all the small tweaks and helpers I have accumulated over the years of using cobra while working on Ory projects. This library might be transferred to the Ory organization in the future.