/commander

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

Primary LanguageGo

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