Go to file
2019-10-23 22:19:35 -07:00
.github Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
altsrc Merge branch 'master' into v2-master-merge 2019-09-16 12:16:28 +05:30
autocomplete fix zsh autocomplete 2019-10-06 01:58:51 -07:00
docs fix spacing 2019-10-23 22:19:35 -07:00
testdata Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
.flake8 Allow slightly longer lines in Python scripts 2017-02-14 21:17:32 -08:00
.gitignore Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
.travis.yml Merge remote-tracking branch 'origin' into v2-master-merge 2019-10-23 22:15:30 -07:00
app_regression_test.go expand test cases 2019-08-25 11:14:20 -07:00
app_test.go make categories private 2019-10-19 10:13:03 +05:30
app.go make categories private 2019-10-19 10:13:03 +05:30
appveyor.yml Merge remote-tracking branch 'origin' into v2-master-merge 2019-10-23 22:15:30 -07:00
args.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
build.go Merge remote-tracking branch 'origin' into v2-master-merge 2019-10-23 22:15:30 -07:00
category.go remove redundant conversion 2019-10-21 18:54:21 +05:30
cli.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
CODE_OF_CONDUCT.md Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
command_test.go Merge remote-tracking branch 'origin' into v2-master-merge 2019-10-23 22:15:30 -07:00
command.go make categories private 2019-10-19 10:13:03 +05:30
context_test.go Merge latest master into v2-merge-master 2019-09-16 11:27:14 +05:30
context.go Merge branch 'master' into v2-master-merge 2019-09-16 12:16:28 +05:30
docs_test.go Fix all tests 2019-09-15 14:52:46 +05:30
docs.go Merge branch 'master' into v2-master-merge 2019-09-16 12:16:28 +05:30
errors_test.go Back out the testify/assert addition 😅 2017-08-04 12:43:16 -04:00
errors.go Fix README.md 2019-09-15 17:24:16 +05:30
fish_test.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
fish.go Fix test cases for context, docs, errors, fish, flags and funcs 2019-09-15 11:01:20 +05:30
flag_bool.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_duration.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_float64_slice.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_float64.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_generic.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_int64_slice.go Remove global method from Int64Slice Flag 2019-09-16 12:17:30 +05:30
flag_int64.go Merge latest master into v2-merge-master 2019-09-16 11:27:14 +05:30
flag_int_slice.go Merge latest master into v2-merge-master 2019-09-16 11:27:14 +05:30
flag_int.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_path.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_string_slice.go Merge branch 'master' into v2-master-merge 2019-09-16 12:16:28 +05:30
flag_string.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_test.go Merge branch 'master' into v2-master-merge 2019-09-16 12:16:28 +05:30
flag_uint64.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag_uint.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
flag.go Merge branch 'master' into v2-master-merge 2019-10-01 20:38:58 -07:00
funcs.go Fix test cases for context, docs, errors, fish, flags and funcs 2019-09-15 11:01:20 +05:30
go.mod Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
go.sum Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
help_test.go Merge branch 'clean-help-printer' into help-printer-v2 2019-10-20 23:41:33 -04:00
help.go Merge branch 'clean-help-printer' into help-printer-v2 2019-10-20 23:41:33 -04:00
helpers_test.go Fix all tests 2019-09-15 14:52:46 +05:30
LICENSE Update license text 2016-06-21 12:52:25 -04:00
parse.go Ensure infinite loop cannot occur in parsing 2019-10-11 23:00:48 -04:00
README.md Merge branch 'master' into v2-master-merge 2019-10-19 09:50:01 +05:30
sort_test.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
sort.go Merge master @1.22.1 with v2 2019-09-13 05:17:24 +05:30
template.go Merge latest master into v2-merge-master 2019-09-16 11:27:14 +05:30

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"
)
...