kendellfab / commander

A golang tool to help abstract a command line command set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

commander

A golang tool to help abstract a command line command set.

  1. Create new command instance.

command := commander.NewCommander("Application Name")

  1. Parse flags

flag.Parse()

  1. Register commands

command.RegisterCommand("title", "invoke", "description", func (args []string){})

  1. Execute commands

command.ExecuteCommand(flag.Args())

About

A golang tool to help abstract a command line command set.


Languages

Language:Go 100.0%