Name Last Update
..
.flake8 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
app.go Loading commit data...
appveyor.yml Loading commit data...
category.go Loading commit data...
cli.go Loading commit data...
command.go Loading commit data...
context.go Loading commit data...
docs.go Loading commit data...
errors.go Loading commit data...
fish.go Loading commit data...
flag.go Loading commit data...
flag_bool.go Loading commit data...
flag_bool_t.go Loading commit data...
flag_duration.go Loading commit data...
flag_float64.go Loading commit data...
flag_generic.go Loading commit data...
flag_int.go Loading commit data...
flag_int64.go Loading commit data...
flag_int64_slice.go Loading commit data...
flag_int_slice.go Loading commit data...
flag_string.go Loading commit data...
flag_string_slice.go Loading commit data...
flag_uint.go Loading commit data...
flag_uint64.go Loading commit data...
funcs.go Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
help.go Loading commit data...
parse.go Loading commit data...
sort.go Loading commit data...
template.go Loading commit data...

cli

Build Status Windows Build Status

GoDoc codebeat Go Report Card codecov

cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.

Usage Documentation

Usage documentation exists for each major version

Installation

Make sure you have a working Go environment. Go version 1.10+ is supported. See the install instructions for Go.

GOPATH

Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:

export PATH=$PATH:$GOPATH/bin

Supported platforms

cli is tested against multiple versions of Go on Linux, and against the latest released version of Go on OS X and Windows. For full details, see ./.travis.yml and ./appveyor.yml.

Using v1 releases

$ go get github.com/urfave/cli
...
import (
  "github.com/urfave/cli"
)
...

Using v2 releases

Warning: v2 is in a pre-release state.

$ go get github.com/urfave/cli.v2
...
import (
  "github.com/urfave/cli.v2" // imports as package "cli"
)
...