You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Marwan Sulaiman 322fc3bed1
add RunWithContext + remove signal cancellation
5 years ago
.github Update stale.yml 5 years ago
altsrc Merge branch 'master' into v2-master-merge 5 years ago
autocomplete fix zsh autocomplete 5 years ago
docs Update Manual 5 years ago
testdata Improve docs generation for cli.Authors 5 years ago
.flake8 Allow slightly longer lines in Python scripts 7 years ago
.gitignore Improve docs generation for cli.Authors 5 years ago
.travis.yml add v2 doc tests 5 years ago
CODE_OF_CONDUCT.md Merge master @1.22.1 with v2 5 years ago
LICENSE Update license text 8 years ago
README.md Merge branch 'master' into remove-beta-warning 5 years ago
app.go add RunWithContext + remove signal cancellation 5 years ago
app_test.go Fix failing test 5 years ago
appveyor.yml Merge remote-tracking branch 'origin' into v2-master-merge 5 years ago
args.go add is set method to flag interface - refer #294 5 years ago
build.go Close file' 5 years ago
category.go remove redundant conversion 5 years ago
cli.go Merge master @1.22.1 with v2 5 years ago
command.go Check for parsing errors within parse.go:parseIter 5 years ago
command_test.go Prevent panic on flagSet access from custom BashComplete 5 years ago
context.go add RunWithContext + remove signal cancellation 5 years ago
context_test.go Rebased upstream - Fixed NPE 5 years ago
docs.go Merge branch 'master' into v2-master-merge 5 years ago
docs_test.go Improve docs generation for cli.Authors 5 years ago
errors.go Fix README.md 5 years ago
errors_test.go Back out the testify/assert addition 😅 7 years ago
fish.go Fix test cases for context, docs, errors, fish, flags and funcs 5 years ago
fish_test.go Add fish shell completion support 5 years ago
flag.go Merge branch 'master' into v2-master-merge 5 years ago
flag_bool.go add is set method to flag interface - refer #294 5 years ago
flag_duration.go add is set method to flag interface - refer #294 5 years ago
flag_float64.go add is set method to flag interface - refer #294 5 years ago
flag_float64_slice.go add is set method to flag interface - refer #294 5 years ago
flag_generic.go add is set method to flag interface - refer #294 5 years ago
flag_int.go add is set method to flag interface - refer #294 5 years ago
flag_int64.go Merge latest master into v2-merge-master 5 years ago
flag_int64_slice.go Remove global method from Int64Slice Flag 5 years ago
flag_int_slice.go Merge latest master into v2-merge-master 5 years ago
flag_path.go add is set method to flag interface - refer #294 5 years ago
flag_string.go add is set method to flag interface - refer #294 5 years ago
flag_string_slice.go Merge branch 'master' into v2-master-merge 5 years ago
flag_test.go Exposed the `value` accessor in `Context` 5 years ago
flag_uint.go add is set method to flag interface - refer #294 5 years ago
flag_uint64.go add is set method to flag interface - refer #294 5 years ago
funcs.go Fix test cases for context, docs, errors, fish, flags and funcs 5 years ago
go.mod Merge master @1.22.1 with v2 5 years ago
go.sum Add support for Go 1.13 5 years ago
help.go Merge branch 'clean-help-printer' into help-printer-v2 5 years ago
help_test.go Merge branch 'clean-help-printer' into help-printer-v2 5 years ago
helpers_test.go Fix all tests 5 years ago
parse.go revert testing change 5 years ago
sort.go Merge master @1.22.1 with v2 5 years ago
sort_test.go Merge master @1.22.1 with v2 5 years ago
template.go Improve docs generation for cli.Authors 5 years ago

README.md

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. Don't know what version you're on? You're probably using the version from the master branch, which is currently v2.

Using v2 releases

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

Using v1 releases

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

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.