Registry / cli / mkideal-cli

mkideal-cli

JSON →
library0.2.7gogounverified

A simple and fast CLI framework for Go applications.

go get github.com/mkideal/cli
INSTALL
IMPORT
SIG · MKIDEAL-CLI
M
mkideal-cli
cligov0.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cli
github.com/mkideal/cli

Define a CLI command with a name flag

package main import ( "fmt" "github.com/mkideal/cli" ) type argT struct { Name string `cli:"n,name" usage:"your name"` } func main() { cli.Run(new(argT), func(ctx *cli.Context) error { argv := ctx.Argv().(*argT) fmt.Printf("Hello, %s\n", argv.Name) return nil }) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources