github.com/study-group-99/pilates@v0.2.2/cmd/pilates/main.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/bh90210/clir"
     7  	"github.com/study-group-99/pilates"
     8  )
     9  
    10  func main() {
    11  	// start a new cli
    12  	cli := clir.NewCli("pilates", "Ultimate Pilates Machine", "v0.2.2")
    13  	// register subcommands
    14  	pilates.RootCommand(cli)
    15  	pilates.LibftCommand(cli)
    16  	// run the app
    17  	if err := cli.Run(); err != nil {
    18  		fmt.Println(err)
    19  	}
    20  }