Skip to content

gomig/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI

CLI app based on Cobra library.

Create New CLI App

import "github.com/gomig/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()