Registry / cli / urfave-cli-v2

urfave-cli-v2

JSON →
library2.27.7gogounverified

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

go get github.com/urfave/cli/v2
INSTALL
IMPORT
SIG · URFAVE-CLI-V2
U
urfave-cli-v2
cligov2.27.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/urfave/cli/v2

Create a simple CLI app that prints a greeting.

package main import ( "fmt" "log" "os" "github.com/urfave/cli/v2" ) func main() { app := &cli.App{ Name: "greet", Action: func(c *cli.Context) error { fmt.Println("Hello!") return nil }, } if err := app.Run(os.Args); err != nil { log.Fatal(err) } }
Debug
Known issues
breakingv2 has breaking changes from v1; flags and actions are different.
fix
Refer to the migration guide when upgrading from v1.
affects: >=2.0.0
Upgrade
Version history
2.27.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
urfave-cli-v2 — go get urfave-cli-v2 · libregistry