Registry / cli / jawher-mow-cli

jawher-mow-cli

JSON →
library1.2.0gogounverified

A framework for building command line applications in Go with argument parsing and validation handled by the framework.

go get github.com/jawher/mow.cli
INSTALL
IMPORT
SIG · JAWHER-MOW-CLI
J
jawher-mow-cli
cligov1.2.0
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/jawher/mow.cli

Minimal CLI app with a boolean flag

package main import "github.com/jawher/mow.cli" func main() { app := cli.App("myapp", "A sample CLI app") app.Spec = "[-v]" var verbose *bool = app.BoolOpt("v verbose", false, "Enable verbose mode") app.Action = func() { if *verbose { println("Verbose mode enabled") } } app.Run(os.Args) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
jawher-mow-cli — go get jawher-mow-cli · libregistry