Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 01-Nov-2020 | - | 423 | 267 | |
altsrc/ | H | 01-Nov-2020 | - | 2,600 | 2,086 | |
autocomplete/ | H | 01-Nov-2020 | - | 55 | 44 | |
docs/ | H | 01-Nov-2020 | - | 4,046 | 3,279 | |
internal/ | H | 01-Nov-2020 | - | 315 | 237 | |
testdata/ | H | 01-Nov-2020 | - | 311 | 187 | |
.flake8 | H A D | 01-Nov-2020 | 31 | 3 | 2 | |
.gitignore | H A D | 01-Nov-2020 | 87 | 8 | 7 | |
CODE_OF_CONDUCT.md | H A D | 01-Nov-2020 | 3.1 KiB | 75 | 55 | |
LICENSE | H A D | 01-Nov-2020 | 1.1 KiB | 22 | 17 | |
README.md | H A D | 01-Nov-2020 | 2.1 KiB | 71 | 50 | |
app.go | H A D | 01-Nov-2020 | 13.1 KiB | 541 | 389 | |
app_test.go | H A D | 01-Nov-2020 | 48.9 KiB | 2,224 | 1,807 | |
args.go | H A D | 01-Nov-2020 | 1 KiB | 55 | 39 | |
category.go | H A D | 01-Nov-2020 | 1.8 KiB | 80 | 60 | |
cli.go | H A D | 01-Nov-2020 | 687 | 24 | 1 | |
command.go | H A D | 01-Nov-2020 | 7 KiB | 301 | 212 | |
command_test.go | H A D | 01-Nov-2020 | 11.9 KiB | 425 | 379 | |
context.go | H A D | 01-Nov-2020 | 5.6 KiB | 274 | 216 | |
context_test.go | H A D | 01-Nov-2020 | 17.1 KiB | 586 | 526 | |
docs.go | H A D | 01-Nov-2020 | 3.1 KiB | 149 | 122 | |
docs_test.go | H A D | 01-Nov-2020 | 3 KiB | 150 | 114 | |
errors.go | H A D | 01-Nov-2020 | 3.4 KiB | 142 | 93 | |
errors_test.go | H A D | 01-Nov-2020 | 2.6 KiB | 143 | 107 | |
fish.go | H A D | 01-Nov-2020 | 4.1 KiB | 197 | 160 | |
fish_test.go | H A D | 01-Nov-2020 | 335 | 22 | 14 | |
flag.go | H A D | 01-Nov-2020 | 9.4 KiB | 389 | 290 | |
flag_bool.go | H A D | 01-Nov-2020 | 2.2 KiB | 107 | 77 | |
flag_duration.go | H A D | 01-Nov-2020 | 2.4 KiB | 106 | 77 | |
flag_float64.go | H A D | 01-Nov-2020 | 2.3 KiB | 107 | 77 | |
flag_float64_slice.go | H A D | 01-Nov-2020 | 3.8 KiB | 164 | 116 | |
flag_generic.go | H A D | 01-Nov-2020 | 2.4 KiB | 109 | 77 | |
flag_int.go | H A D | 01-Nov-2020 | 2.2 KiB | 107 | 77 | |
flag_int64.go | H A D | 01-Nov-2020 | 2.3 KiB | 106 | 77 | |
flag_int64_slice.go | H A D | 01-Nov-2020 | 3.6 KiB | 160 | 111 | |
flag_int_slice.go | H A D | 01-Nov-2020 | 3.9 KiB | 174 | 121 | |
flag_path.go | H A D | 01-Nov-2020 | 2 KiB | 96 | 68 | |
flag_string.go | H A D | 01-Nov-2020 | 2.1 KiB | 96 | 68 | |
flag_string_slice.go | H A D | 01-Nov-2020 | 4.2 KiB | 181 | 126 | |
flag_test.go | H A D | 01-Nov-2020 | 53 KiB | 1,883 | 1,649 | |
flag_timestamp.go | H A D | 01-Nov-2020 | 3.4 KiB | 155 | 110 | |
flag_uint.go | H A D | 01-Nov-2020 | 2.3 KiB | 106 | 77 | |
flag_uint64.go | H A D | 01-Nov-2020 | 2.3 KiB | 106 | 77 | |
funcs.go | H A D | 01-Nov-2020 | 1.9 KiB | 45 | 12 | |
go.mod | H A D | 01-Nov-2020 | 183 | 10 | 7 | |
go.sum | H A D | 01-Nov-2020 | 1.3 KiB | 15 | 14 | |
help.go | H A D | 01-Nov-2020 | 9.3 KiB | 387 | 294 | |
help_test.go | H A D | 01-Nov-2020 | 21.3 KiB | 926 | 790 | |
helpers_test.go | H A D | 01-Nov-2020 | 456 | 27 | 21 | |
parse.go | H A D | 01-Nov-2020 | 2.4 KiB | 95 | 67 | |
sort.go | H A D | 01-Nov-2020 | 520 | 30 | 21 | |
sort_test.go | H A D | 01-Nov-2020 | 587 | 31 | 27 | |
template.go | H A D | 01-Nov-2020 | 3.7 KiB | 121 | 83 |
README.md
1cli 2=== 3 4[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://godoc.org/github.com/urfave/cli) 5[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/github-com-urfave-cli) 6[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli) 7[![codecov](https://codecov.io/gh/urfave/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/urfave/cli) 8 9cli is a simple, fast, and fun package for building command line apps in Go. The 10goal is to enable developers to write fast and distributable command line 11applications in an expressive way. 12 13## Usage Documentation 14 15Usage 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`. 16 17- `v2` - [./docs/v2/manual.md](./docs/v2/manual.md) 18- `v1` - [./docs/v1/manual.md](./docs/v1/manual.md) 19 20Guides for migrating to newer versions: 21 22- `v1-to-v2` - [./docs/migrate-v1-to-v2.md](./docs/migrate-v1-to-v2.md) 23 24## Installation 25 26Using this package requires a working Go environment. [See the install instructions for Go](http://golang.org/doc/install.html). 27 28Go Modules are required when using this package. [See the go blog guide on using Go Modules](https://blog.golang.org/using-go-modules). 29 30### Using `v2` releases 31 32``` 33$ GO111MODULE=on go get github.com/urfave/cli/v2 34``` 35 36```go 37... 38import ( 39 "github.com/urfave/cli/v2" // imports as package "cli" 40) 41... 42``` 43 44### Using `v1` releases 45 46``` 47$ GO111MODULE=on go get github.com/urfave/cli 48``` 49 50```go 51... 52import ( 53 "github.com/urfave/cli" 54) 55... 56``` 57 58### GOPATH 59 60Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can 61be easily used: 62``` 63export PATH=$PATH:$GOPATH/bin 64``` 65 66### Supported platforms 67 68cli is tested against multiple versions of Go on Linux, and against the latest 69released version of Go on OS X and Windows. This project uses Github Actions for 70builds. To see our currently supported go versions and platforms, look at the [./.github/workflows/cli.yml](https://github.com/urfave/cli/blob/master/.github/workflows/cli.yml). 71