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.
 
 
Sascha Grunert 002bde2233
Add suggestions support
4 years ago
.github ci readability 4 years ago
altsrc Merge branch 'master' into github-actions-windows 4 years ago
autocomplete Fix zsh completion scripts 4 years ago
docs Add suggestions support 4 years ago
internal move bounds 4 years ago
testdata Fix man page heading formatting 4 years ago
.flake8 Allow slightly longer lines in Python scripts 7 years ago
.gitignore add diffing 4 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 Update README.md 4 years ago
app.go Add suggestions support 4 years ago
app_test.go fix description of subcommand more consistent 4 years ago
args.go add is set method to flag interface - refer #294 5 years ago
category.go amend comments 5 years ago
cli.go Merge master @1.22.1 with v2 5 years ago
command.go Add suggestions support 4 years ago
command_test.go reduce stdout logs in tests 4 years ago
context.go remove unused code 4 years ago
context_test.go add a fix 4 years ago
docs.go Use VisibleFlags during doc generation 4 years ago
docs_test.go Merge branch 'master' into github-actions-windows 4 years ago
errors.go amend comments 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 Merge master @1.22.1 with v2 5 years ago
flag.go refactor flag names - make it more explicitly 4 years ago
flag_bool.go refactor flag names - make it more explicitly 4 years ago
flag_duration.go refactor flag names - make it more explicitly 4 years ago
flag_float64.go refactor flag names - make it more explicitly 4 years ago
flag_float64_slice.go Fix possible panics in slice type assertion 4 years ago
flag_generic.go refactor flag names - make it more explicitly 4 years ago
flag_int.go refactor flag names - make it more explicitly 4 years ago
flag_int64.go refactor flag names - make it more explicitly 4 years ago
flag_int64_slice.go Fix possible panics in slice type assertion 4 years ago
flag_int_slice.go Fix possible panics in slice type assertion 4 years ago
flag_path.go refactor flag names - make it more explicitly 4 years ago
flag_string.go refactor flag names - make it more explicitly 4 years ago
flag_string_slice.go Allow specifying a StringSlice destination for StringSliceFlag 4 years ago
flag_test.go Allow specifying a StringSlice destination for StringSliceFlag 4 years ago
flag_timestamp.go refactor flag names - make it more explicitly 4 years ago
flag_uint.go refactor flag names - make it more explicitly 4 years ago
flag_uint64.go refactor flag names - make it more explicitly 4 years ago
funcs.go Fix test cases for context, docs, errors, fish, flags and funcs 5 years ago
go.mod Add suggestions support 4 years ago
go.sum Add suggestions support 4 years ago
help.go Add suggestions support 4 years ago
help_test.go Merge branch 'clean-help-printer' into help-printer-v2 5 years ago
helpers_test.go remove unused code 4 years ago
parse.go Add suggestions support 4 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
suggestions.go Add suggestions support 4 years ago
suggestions_test.go Add suggestions support 4 years ago
template.go fix description of subcommand more consistent 4 years ago

README.md

cli

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.