Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 26-Aug-2020 | - | 71 | 60 | |
altsrc/ | H | 26-Aug-2020 | - | 2,616 | 2,072 | |
autocomplete/ | H | 26-Aug-2020 | - | 46 | 35 | |
docs/ | H | 26-Aug-2020 | - | 2,000 | 1,633 | |
testdata/ | H | 26-Aug-2020 | - | 257 | 158 | |
.flake8 | H A D | 26-Aug-2020 | 31 | 3 | 2 | |
.gitignore | H A D | 26-Aug-2020 | 41 | 4 | 4 | |
CODE_OF_CONDUCT.md | H A D | 26-Aug-2020 | 3.1 KiB | 75 | 55 | |
LICENSE | H A D | 26-Aug-2020 | 1.1 KiB | 22 | 17 | |
README.md | H A D | 26-Aug-2020 | 1.9 KiB | 71 | 51 | |
app.go | H A D | 26-Aug-2020 | 13.1 KiB | 532 | 381 | |
app_regression_test.go | H A D | 26-Aug-2020 | 1.6 KiB | 60 | 49 | |
app_test.go | H A D | 26-Aug-2020 | 50.5 KiB | 2,265 | 1,834 | |
appveyor.yml | H A D | 26-Aug-2020 | 508 | 29 | 21 | |
build.go | H A D | 26-Aug-2020 | 2.7 KiB | 175 | 138 | |
category.go | H A D | 26-Aug-2020 | 1.1 KiB | 45 | 33 | |
cli.go | H A D | 26-Aug-2020 | 699 | 23 | 1 | |
command.go | H A D | 26-Aug-2020 | 9.7 KiB | 379 | 256 | |
command_test.go | H A D | 26-Aug-2020 | 11.5 KiB | 421 | 373 | |
context.go | H A D | 26-Aug-2020 | 7.9 KiB | 349 | 267 | |
context_test.go | H A D | 26-Aug-2020 | 17.2 KiB | 622 | 561 | |
docs.go | H A D | 26-Aug-2020 | 3.1 KiB | 149 | 123 | |
docs_test.go | H A D | 26-Aug-2020 | 2.3 KiB | 123 | 95 | |
errors.go | H A D | 26-Aug-2020 | 2.6 KiB | 116 | 80 | |
errors_test.go | H A D | 26-Aug-2020 | 2.3 KiB | 123 | 92 | |
fish.go | H A D | 26-Aug-2020 | 4.1 KiB | 195 | 157 | |
fish_test.go | H A D | 26-Aug-2020 | 246 | 18 | 10 | |
flag.go | H A D | 26-Aug-2020 | 8.3 KiB | 347 | 263 | |
flag_bool.go | H A D | 26-Aug-2020 | 2.4 KiB | 110 | 78 | |
flag_bool_t.go | H A D | 26-Aug-2020 | 2.4 KiB | 111 | 78 | |
flag_duration.go | H A D | 26-Aug-2020 | 2.5 KiB | 107 | 74 | |
flag_float64.go | H A D | 26-Aug-2020 | 2.4 KiB | 107 | 74 | |
flag_generic.go | H A D | 26-Aug-2020 | 2.5 KiB | 111 | 75 | |
flag_int.go | H A D | 26-Aug-2020 | 2.3 KiB | 106 | 74 | |
flag_int64.go | H A D | 26-Aug-2020 | 2.4 KiB | 107 | 74 | |
flag_int64_slice.go | H A D | 26-Aug-2020 | 4.5 KiB | 200 | 145 | |
flag_int_slice.go | H A D | 26-Aug-2020 | 4.3 KiB | 199 | 145 | |
flag_string.go | H A D | 26-Aug-2020 | 2.2 KiB | 99 | 67 | |
flag_string_slice.go | H A D | 26-Aug-2020 | 4.2 KiB | 185 | 131 | |
flag_test.go | H A D | 26-Aug-2020 | 37.1 KiB | 1,426 | 1,285 | |
flag_uint.go | H A D | 26-Aug-2020 | 2.3 KiB | 107 | 74 | |
flag_uint64.go | H A D | 26-Aug-2020 | 2.4 KiB | 107 | 74 | |
funcs.go | H A D | 26-Aug-2020 | 1.9 KiB | 45 | 12 | |
go.mod | H A D | 26-Aug-2020 | 180 | 10 | 7 | |
go.sum | H A D | 26-Aug-2020 | 1.3 KiB | 15 | 14 | |
help.go | H A D | 26-Aug-2020 | 9 KiB | 364 | 278 | |
help_test.go | H A D | 26-Aug-2020 | 17.6 KiB | 766 | 654 | |
helpers_test.go | H A D | 26-Aug-2020 | 594 | 29 | 23 | |
helpers_unix_test.go | H A D | 26-Aug-2020 | 126 | 10 | 5 | |
helpers_windows_test.go | H A D | 26-Aug-2020 | 377 | 21 | 16 | |
parse.go | H A D | 26-Aug-2020 | 2.4 KiB | 95 | 67 | |
sort.go | H A D | 26-Aug-2020 | 520 | 30 | 21 | |
sort_test.go | H A D | 26-Aug-2020 | 587 | 31 | 27 | |
template.go | H A D | 26-Aug-2020 | 3.7 KiB | 122 | 82 |
README.md
1cli 2=== 3 4[![Build Status](https://travis-ci.org/urfave/cli.svg?branch=master)](https://travis-ci.org/urfave/cli) 5[![Windows Build Status](https://ci.appveyor.com/api/projects/status/rtgk5xufi932pb2v?svg=true)](https://ci.appveyor.com/project/urfave/cli) 6 7[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://godoc.org/github.com/urfave/cli) 8[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/github-com-urfave-cli) 9[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli) 10[![codecov](https://codecov.io/gh/urfave/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/urfave/cli) 11 12cli is a simple, fast, and fun package for building command line apps in Go. The 13goal is to enable developers to write fast and distributable command line 14applications in an expressive way. 15 16## Usage Documentation 17 18Usage documentation exists for each major version 19 20- `v1` - [./docs/v1/manual.md](./docs/v1/manual.md) 21- `v2` - documentation for `v2` is WIP 22 23## Installation 24 25Make sure you have a working Go environment. Go version 1.10+ is supported. [See 26the install instructions for Go](http://golang.org/doc/install.html). 27 28### GOPATH 29 30Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can 31be easily used: 32``` 33export PATH=$PATH:$GOPATH/bin 34``` 35 36### Supported platforms 37 38cli is tested against multiple versions of Go on Linux, and against the latest 39released version of Go on OS X and Windows. For full details, see 40[`./.travis.yml`](./.travis.yml) and [`./appveyor.yml`](./appveyor.yml). 41 42### Using `v1` releases 43 44``` 45$ go get github.com/urfave/cli 46``` 47 48```go 49... 50import ( 51 "github.com/urfave/cli" 52) 53... 54``` 55 56### Using `v2` releases 57 58**Warning**: `v2` is in a pre-release state. 59 60``` 61$ go get github.com/urfave/cli.v2 62``` 63 64```go 65... 66import ( 67 "github.com/urfave/cli.v2" // imports as package "cli" 68) 69... 70``` 71