Categorygithub.com/wavesoftware/go-commandline
modulepackage
1.1.0
Repository: https://github.com/wavesoftware/go-commandline.git
Documentation: pkg.go.dev

# README

commandline - cobra integration package

Types to allow to write CLI tools using cobra in easy way.

# Packages

No description provided by the author

# Functions

New creates a new App from CobraProvider.
WithArgs creates an option which sets args.
WithCommand will allow one to change the cobra.Command.
WithExit creates an option which sets the exit function.
WithInput creates an option witch sets os.Stdin.
WithOutput creates an option witch sets os.Stdout and os.Stderr.

# Variables

ErrNoRootCommand is returned when no root command is provided.

# Structs

App represents a command line application.

# Interfaces

CobraProvider is used to provide a Cobra command.

# Type aliases

Option is used to configure an App.