Go to file
2019-12-20 11:22:51 -08:00
.github Update cli.yml 2019-12-18 18:11:43 -08:00
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 Update Manual 2019-11-28 12:31:14 +05:30
testdata Improve docs generation for cli.Authors 2019-11-09 11:32:34 +01:00
.flake8 Allow slightly longer lines in Python scripts 2017-02-14 21:17:32 -08:00
.gitignore add env and fix url for golang.org 2019-12-01 23:01:10 +05:30
app_test.go replace log.Print with t.Log 2019-12-07 12:15:17 +05:30
app.go Update app.go 2019-12-13 19:54:14 -08:00
appveyor.yml Add codecov action 2019-12-13 09:10:41 +01:00
args.go add is set method to flag interface - refer #294 2019-09-15 18:46:52 +05:30
build.go Close file' 2019-11-19 11:48:45 +13:00
category.go amend comments 2019-12-12 21:29:09 +00:00
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 Prevent panic on flagSet access from custom BashComplete 2019-11-25 14:25:11 -05:00
command.go Check for parsing errors within parse.go:parseIter 2019-11-27 11:42:57 -05:00
context_test.go Rebased upstream - Fixed NPE 2019-11-18 07:38:48 -05:00
context.go add RunWithContext + remove signal cancellation 2019-12-04 15:35:53 -05:00
docs_test.go Use VisibleFlags during doc generation 2019-12-19 08:38:43 -05:00
docs.go Use VisibleFlags during doc generation 2019-12-19 08:38:43 -05:00
errors_test.go Back out the testify/assert addition 😅 2017-08-04 12:43:16 -04:00
errors.go amend comments 2019-12-12 21:29:09 +00:00
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 fmt 2019-12-12 17:31:41 +01:00
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 fix some golint errors show in go report card 2019-12-12 21:24:43 +00:00
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 Add more tests 2019-12-12 18:14:08 +01:00
flag_timestamp.go fmt 2019-12-12 17:31:41 +01:00
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 fix tests 2019-12-16 15:16:41 +01:00
go.sum fix tests 2019-12-16 15:16:41 +01:00
help_test.go Merge branch 'clean-help-printer' into help-printer-v2 2019-10-20 23:41:33 -04:00
help.go fix some golint errors show in go report card 2019-12-12 21:24:43 +00: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 revert testing change 2019-11-27 20:37:23 -08:00
README.md Update readme build info 2019-12-19 22:22:26 +09:00
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 Improve docs generation for cli.Authors 2019-11-09 11:32:34 +01:00

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. This project uses Github Actions for builds. For more build info, please look at the ./.github/workflows/cli.yml.