https://github.com/zepatrik/cobrax
Library with helpers for https://github.com/spf13/cobra. Makes commands composable and reusable, and makes testing easier.
https://github.com/zepatrik/cobrax
cli cobra cobra-cli testing
Last synced: about 1 year ago
JSON representation
Library with helpers for https://github.com/spf13/cobra. Makes commands composable and reusable, and makes testing easier.
- Host: GitHub
- URL: https://github.com/zepatrik/cobrax
- Owner: zepatrik
- License: apache-2.0
- Created: 2022-11-30T16:34:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T16:06:18.000Z (over 3 years ago)
- Last Synced: 2025-02-13T12:17:19.671Z (over 1 year ago)
- Topics: cli, cobra, cobra-cli, testing
- Language: Go
- Homepage: https://pkg.go.dev/github.com/zepatrik/cobrax
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cobrax - Helpers for [spf13/cobra](https://github.com/spf13/cobra)
This project provides helpers for the commonly used [spf13/cobra](https://github.com/spf13/cobra) library.
It specifically aims to make commands composable and reusable, as well as to make testing easier.
## Installation
```bash
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](https://github.com/ory). This library might be transferred to the Ory organization in the future.