Skip to content

Pandademic/raspberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

raspberry

tasty cli framework for go

Features


  • simple
  • fast
  • small

Example Program


This program can spit out a variety of greeetings.

package main import ( berry "github.com/pandademic/raspberry" "fmt" ) func hiCmd(){ fmt.Println("hi") } func helloCmd(){ fmt.Println("hello") } func main(){ cli := berry.Cli{AcceptedCommands:[]string{"-v","version","-h","help","hi","hello"},HelpMsg:"Available commands:\n-h\nhelp\n-v\nversion\nhi\nhello",Version:0.1} cli.Setup() cli.SetHandler("hi",hiCmd) cli.SetHandler("hello",helloCmd) }

Documentation


Check the wiki

Licence


This program is licenced under the MIT licence