CLI
CLI app based on Cobra library.
Create New CLI App
import "github.com/bopher/cli"
app := cli.NewCLI("myApp", "My App Description")
Usage
CLI interface contains following methods:
AddCommand
Add new command to cli
// Signature:
AddCommand(cmd *cobra.Command)
RootCommand
Return pointer to cli root command
// Signature:
RootCommand() *cobra.Command
Run
Run cli
// Signature:
Run()