Skip to content

LucasCarioca/gocli

Repository files navigation

#goCLI

A simple and lightweight cli framework for go applications. Get your cli setup in seconds.

GitHub release (latest by date) GitHub Release Date Go Reference Go Report Card

Getting started

Add the dependency go get github.com/LucasCarioca/gocli

Your first cli

package main

import "github.com/LucasCarioca/gocli/cli"

func main() {
    app := cli.NewApp(func() error {
        fmt.Println("Hello world")    	
    })
    app.Run()
}

Build and run

go build main.go -o mycli
mycli
# Hello World

See the full documentation