Go to file
2019-11-08 13:56:05 +13:00
.github use codeowners instead of maintainers 2019-08-03 10:23:29 -07:00
altsrc linter fixes 2019-08-07 20:14:50 +05:30
autocomplete fix zsh autocomplete 2019-10-06 01:58:51 -07:00
docs update to latest docs 2019-10-12 01:05:32 -07:00
testdata Escape single quotes in fish shell completion 2019-08-30 08:56:11 +02:00
.flake8 Allow slightly longer lines in Python scripts 2017-02-14 21:17:05 -08:00
.gitignore get latest changes from master 2019-08-03 22:47:47 +05:30
.travis.yml update test paths 2019-09-15 21:48:54 -07:00
app_regression_test.go expand test cases 2019-08-25 11:14:20 -07:00
app_test.go Avoid panic for missing flag value 2019-09-13 06:11:09 -04:00
app.go Avoid panic for missing flag value 2019-09-13 06:11:09 -04:00
appveyor.yml Merge remote-tracking branch 'origin/master' into versioned-docs 2019-10-12 01:01:54 -07:00
build.go close file using existing style 2019-11-08 13:56:05 +13:00
category.go Consider case when sorting strings 2017-10-28 03:00:11 -04:00
cli.go move entire build system to go 2019-08-04 20:06:44 +05:30
CODE_OF_CONDUCT.md Adjust contribution and maintainer prose per current reality 2018-02-20 12:40:43 -05:00
command_test.go Merge branch 'master' into pass-through-regression 2019-10-16 22:00:49 -07:00
command.go trim whitespace 2019-10-01 20:21:12 -07:00
context_test.go Fix Typo 2019-09-11 14:42:38 +05:30
context.go Ensure flag is not blank 2019-09-11 15:10:14 +05:30
docs_test.go Don't generate fish completion for hidden commands 2019-09-11 09:09:39 +02:00
docs.go Don't output hidden commands for man pages 2019-09-10 13:49:11 -04:00
errors_test.go Remove logic that exited even if the error was not an OsExiter 2017-03-04 14:33:36 -08:00
errors.go Remove logic that exited even if the error was not an OsExiter 2017-03-04 14:33:36 -08:00
fish_test.go Add fish shell completion support 2019-08-09 08:58:06 +02:00
fish.go Don't generate fish completion for hidden commands 2019-09-11 09:09:39 +02:00
flag_bool_t.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_bool.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_duration.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_float64.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_generic.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_int64_slice.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_int64.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_int_slice.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_int.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_string_slice.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_string.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_test.go linter fixes 2019-08-07 20:14:50 +05:30
flag_uint64.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag_uint.go Remove Flag Generation 2019-09-09 07:44:07 +05:30
flag.go fix typo in flag.go docstring 2019-09-28 19:03:00 +01:00
funcs.go fix FilePath documentation in README.md 2017-10-31 10:29:11 -05:00
go.mod Bump minimum supported version of Go to 1.11 2019-09-10 06:40:45 +05:30
go.sum Add support for Go 1.13 2019-09-10 06:17:39 +05:30
help_test.go Make app help behavior consistent with commands 2019-10-17 05:50:38 -04:00
help.go Make app help behavior consistent with commands 2019-10-17 05:50:38 -04:00
helpers_test.go Revising/adding tests that assert order of operations inside App.Run 2016-04-28 16:05:14 -04:00
helpers_unix_test.go Add windows implementation of Clearenv for tests 2016-11-13 14:59:35 -08:00
helpers_windows_test.go Add windows implementation of Clearenv for tests 2016-11-13 14:59:35 -08:00
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 add usage documentation links 2019-10-12 00:59:50 -07:00
sort_test.go Consider case when sorting strings 2017-10-28 03:00:11 -04:00
sort.go Consider case when sorting strings 2017-10-28 03:00:11 -04:00
template.go Add fish shell completion support 2019-08-09 08:58:06 +02: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

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