Registry / cli / urfave-cli

urfave-cli

JSON →
library1.22.17gogounverified

Package cli provides a minimal framework for creating and organizing command line Go applications.

go get github.com/urfave/cli
INSTALL
IMPORT
SIG · URFAVE-CLI
U
urfave-cli
cligov1.22.17
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/urfave/cli

Create a simple CLI app that prints 'Hello, world!'

package main import ( "fmt" "os" "github.com/urfave/cli" ) func main() { app := cli.NewApp() app.Name = "hello" app.Action = func(c *cli.Context) error { fmt.Println("Hello, world!") return nil } err := app.Run(os.Args) if err != nil { panic(err) } }
Debug
Known issues
breakingv1 and v2 have incompatible APIs; v2 uses a different action signature and removes some features.
fix
Use github.com/urfave/cli/v2 for new projects.
affects: >=2.0.0
Upgrade
Version history
1.22.17latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources
urfave-cli — go get urfave-cli · libregistry