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()

About

CLI app based on cobra library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages