Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 26-Aug-2020 | - | |||
altsrc/ | H | 26-Aug-2020 | - | |||
autocomplete/ | H | 26-Aug-2020 | - | |||
docs/ | H | 26-Aug-2020 | - | |||
testdata/ | H | 26-Aug-2020 | - | |||
.flake8 | H A D | 26-Aug-2020 | 31 | |||
.gitignore | H A D | 26-Aug-2020 | 41 | |||
CODE_OF_CONDUCT.md | H A D | 26-Aug-2020 | 3.1 KiB | |||
LICENSE | H A D | 26-Aug-2020 | 1.1 KiB | |||
README.md | H A D | 26-Aug-2020 | 1.9 KiB | |||
app.go | H A D | 26-Aug-2020 | 13.1 KiB | |||
app_regression_test.go | H A D | 26-Aug-2020 | 1.6 KiB | |||
app_test.go | H A D | 26-Aug-2020 | 50.5 KiB | |||
appveyor.yml | H A D | 26-Aug-2020 | 508 | |||
build.go | H A D | 26-Aug-2020 | 2.7 KiB | |||
category.go | H A D | 26-Aug-2020 | 1.1 KiB | |||
cli.go | H A D | 26-Aug-2020 | 699 | |||
command.go | H A D | 26-Aug-2020 | 9.7 KiB | |||
command_test.go | H A D | 26-Aug-2020 | 11.5 KiB | |||
context.go | H A D | 26-Aug-2020 | 7.9 KiB | |||
context_test.go | H A D | 26-Aug-2020 | 17.2 KiB | |||
docs.go | H A D | 26-Aug-2020 | 3.1 KiB | |||
docs_test.go | H A D | 26-Aug-2020 | 2.3 KiB | |||
errors.go | H A D | 26-Aug-2020 | 2.6 KiB | |||
errors_test.go | H A D | 26-Aug-2020 | 2.3 KiB | |||
fish.go | H A D | 26-Aug-2020 | 4.1 KiB | |||
fish_test.go | H A D | 26-Aug-2020 | 246 | |||
flag.go | H A D | 26-Aug-2020 | 8.3 KiB | |||
flag_bool.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
flag_bool_t.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
flag_duration.go | H A D | 26-Aug-2020 | 2.5 KiB | |||
flag_float64.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
flag_generic.go | H A D | 26-Aug-2020 | 2.5 KiB | |||
flag_int.go | H A D | 26-Aug-2020 | 2.3 KiB | |||
flag_int64.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
flag_int64_slice.go | H A D | 26-Aug-2020 | 4.5 KiB | |||
flag_int_slice.go | H A D | 26-Aug-2020 | 4.3 KiB | |||
flag_string.go | H A D | 26-Aug-2020 | 2.2 KiB | |||
flag_string_slice.go | H A D | 26-Aug-2020 | 4.2 KiB | |||
flag_test.go | H A D | 26-Aug-2020 | 37.1 KiB | |||
flag_uint.go | H A D | 26-Aug-2020 | 2.3 KiB | |||
flag_uint64.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
funcs.go | H A D | 26-Aug-2020 | 1.9 KiB | |||
go.mod | H A D | 26-Aug-2020 | 180 | |||
go.sum | H A D | 26-Aug-2020 | 1.3 KiB | |||
help.go | H A D | 26-Aug-2020 | 9 KiB | |||
help_test.go | H A D | 26-Aug-2020 | 17.6 KiB | |||
helpers_test.go | H A D | 26-Aug-2020 | 594 | |||
helpers_unix_test.go | H A D | 26-Aug-2020 | 126 | |||
helpers_windows_test.go | H A D | 26-Aug-2020 | 377 | |||
parse.go | H A D | 26-Aug-2020 | 2.4 KiB | |||
sort.go | H A D | 26-Aug-2020 | 520 | |||
sort_test.go | H A D | 26-Aug-2020 | 587 | |||
template.go | H A D | 26-Aug-2020 | 3.7 KiB |
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