Go to file
2019-12-30 10:41:15 +01:00
.github fix more copy paste tragedy 2019-12-27 04:54:31 -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 Merge remote-tracking branch 'origin' into uncomment 2019-12-25 08:34:27 -08:00
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 reduce diff 2019-12-24 08:58:27 -08:00
app_test.go Merge branch 'master' into refactor-tests-drop-buffer-writer 2019-12-29 16:50:46 -08:00
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 reduce stdout logs in tests 2019-12-29 17:00:19 +01:00
command.go Check for parsing errors within parse.go:parseIter 2019-11-27 11:42:57 -05:00
context_test.go add a fix 2019-12-24 08:55:31 -08:00
context.go reduce diff 2019-12-24 08:58:40 -08:00
docs_test.go reduce stdout logs in tests 2019-12-29 17:00:19 +01: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 refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_duration.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_float64_slice.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_float64.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_generic.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_int64_slice.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_int64.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_int_slice.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_int.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_path.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_string_slice.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_string.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_test.go goimports - fix code format 2019-12-30 10:41:15 +01:00
flag_timestamp.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_uint64.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag_uint.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01:00
flag.go refactor flag names - make it more explicitly 2019-12-29 08:58:12 +01: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 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 Merge branch 'master' into lynncyrin-patch-9 2019-12-24 05:15:52 -08: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

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.

Installation

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

Go Modules are strongly recommended when using this package. See the go blog guide on using Go Modules.

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

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

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.