All Projects → brianstrauch → cobra-shell

brianstrauch / cobra-shell

Licence: Apache-2.0 license
Generate an interactive, autocompleting shell for any Cobra CLI

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to cobra-shell

cobra-prompt
Connect cobra and go-prompt
Stars: ✭ 24 (-4%)
Mutual labels:  cobra, go-prompt
envctl
Tool for managing local dev environments
Stars: ✭ 24 (-4%)
Mutual labels:  cobra
whisperer
Simple Go program that makes HTTP request constantly in order to generate random HTTP/DNS traffic noise
Stars: ✭ 31 (+24%)
Mutual labels:  cobra
kink
KinK is a helper CLI that facilitates to manage KinD clusters as Kubernetes pods. Designed to ease clusters up for fast testing with batteries included in mind.
Stars: ✭ 364 (+1356%)
Mutual labels:  cobra
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+97648%)
Mutual labels:  cobra
go-starter
Go 服务框架脚手架. 整合 echo、swag、viper、nsq、logrus、fx、xorm、cobra 等第三方库
Stars: ✭ 145 (+480%)
Mutual labels:  cobra
loli
A pretty CLI to find animes passing images 👉😳👈
Stars: ✭ 17 (-32%)
Mutual labels:  cobra
blackbean
The blackbean is a command tool for elasticsearch operations by using cobra. Besides, blackbean is the name of my lovely French bulldog.
Stars: ✭ 23 (-8%)
Mutual labels:  cobra
kubernetes-security-benchmark
A simple way to evaluate the security of your Kubernetes deployment against sets of best practices defined by various community sources
Stars: ✭ 27 (+8%)
Mutual labels:  cobra
producthunt-cli
CLI application to access product hunt
Stars: ✭ 36 (+44%)
Mutual labels:  cobra
Cobra
Source Code Security Audit (源代码安全审计)
Stars: ✭ 2,802 (+11108%)
Mutual labels:  cobra
CNApy
An integrated visual environment for metabolic modeling with common methods such as FBA, FVA and Elementary Flux Modes, and advanced features such as thermodynamic methods, extended Minimal Cut Sets, OptKnock, RobustKnock, OptCouple and more!
Stars: ✭ 27 (+8%)
Mutual labels:  cobra
super-dollop
Encrypt your files or notes by your GPG key and save to MinIO or AWS S3 easily!
Stars: ✭ 58 (+132%)
Mutual labels:  cobra
cobra-example
minimal example of cobra app
Stars: ✭ 43 (+72%)
Mutual labels:  cobra
mango
mango is a man-page generator for the Go flag, pflag, cobra, coral, and kong packages
Stars: ✭ 191 (+664%)
Mutual labels:  cobra
gomphotherium
Gomphotherium (/ˌɡɒmfəˈθɪəriəm/; "welded beast"), a command line Mastodon client.
Stars: ✭ 22 (-12%)
Mutual labels:  cobra
coBra
[co]erced [bra]cket, a simple vim plugin that forces brackets and quotes to be smart
Stars: ✭ 28 (+12%)
Mutual labels:  cobra
savetheworldwithgo
Build systems with Go examples
Stars: ✭ 81 (+224%)
Mutual labels:  cobra
go course
個人多年來學習與實作上的心得筆記
Stars: ✭ 25 (+0%)
Mutual labels:  cobra
cobrame
A COBRApy extension for genome-scale models of metabolism and expression (ME-models)
Stars: ✭ 30 (+20%)
Mutual labels:  cobra

cobra-shell

logo

Description

Leverages the Cobra completion API to generate an interactive shell for any Cobra CLI, powered by go-prompt.

  • On-the-fly autocompletion for all commands
  • Static and dynamic autocompletion for args and flags, as described here
  • Full prompt customizability

Usage

Download

go get github.com/brianstrauch/cobra-shell

Example

package main

import (
    shell "github.com/brianstrauch/cobra-shell"
    "github.com/spf13/cobra"
)

func main() {
	cmd := &cobra.Command{Use: "example"}
	cmd.AddCommand(shell.New())
	_ = cmd.Execute()
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].