Kommando Go Report Card

Simple and usable cli tool for go lang.

Installation

go get github.com/yigit433/kommando

Example

package main

import (
    "fmt"
    "github.com/yigit433/kommando"
    "github.com/yigit433/kommando/types"
)

func main() {
    app := kommando.NewKommando(types.Config{
        AppName: "Kommando Test App",
    })

    app.AddCommand(
        &types.Command{
            Name: "test",
            Description: "Hello world test example!",
            Execute: func(res *types.CmdResponse) {
                fmt.Println("Hello world!")
            },
        },
    )

    app.Run()
}

GitHub

View Github