modulepackage
0.5.0
Repository: https://github.com/brianstrauch/cobra-shell.git
Documentation: pkg.go.dev
# README
cobra-shell
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()
}
# Packages
No description provided by the author
# Functions
New creates a Cobra CLI command named "shell" which runs an interactive shell prompt for the root command.