adding custom config library, can read/write TOML, started config validation

This commit is contained in:
2020-05-26 22:58:24 -04:00
commit 5d7cd68279
14 changed files with 352 additions and 0 deletions

24
client/test/test.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"fmt"
"github.com/deranjer/clir"
)
func main() {
// Create new cli
cli := clir.NewCli("Other Args", "A basic example", "v0.0.1")
// Set long description
cli.LongDescription("This app shows positional arguments")
name := cli.NewSubCommand("name", "Shows your name!")
name.Action(func() error {
fmt.Printf("The remaining arguments were: %+v\n", name.OtherArgs())
return nil
})
// Run!
cli.Run()
}