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