• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H06-Mar-2020-

altsrc/H06-Mar-2020-

autocomplete/H06-Mar-2020-

docs/H06-Mar-2020-

internal/H06-Mar-2020-

testdata/H06-Mar-2020-

.flake8H A D06-Mar-202031

.gitignoreH A D06-Mar-202087

CODE_OF_CONDUCT.mdH A D06-Mar-20203.1 KiB

LICENSEH A D06-Mar-20201.1 KiB

README.mdH A D06-Mar-20202 KiB

app.goH A D06-Mar-202013.1 KiB

app_test.goH A D06-Mar-202047.7 KiB

args.goH A D06-Mar-20201 KiB

category.goH A D06-Mar-20201.8 KiB

cli.goH A D06-Mar-2020687

command.goH A D06-Mar-20207.1 KiB

command_test.goH A D06-Mar-202011 KiB

context.goH A D06-Mar-20205.6 KiB

context_test.goH A D06-Mar-202016.8 KiB

docs.goH A D06-Mar-20203.1 KiB

docs_test.goH A D06-Mar-20203 KiB

errors.goH A D06-Mar-20203 KiB

errors_test.goH A D06-Mar-20202.3 KiB

fish.goH A D06-Mar-20204 KiB

fish_test.goH A D06-Mar-2020246

flag.goH A D06-Mar-20209.4 KiB

flag_bool.goH A D06-Mar-20202.2 KiB

flag_duration.goH A D06-Mar-20202.4 KiB

flag_float64.goH A D06-Mar-20202.3 KiB

flag_float64_slice.goH A D06-Mar-20203.8 KiB

flag_generic.goH A D06-Mar-20202.4 KiB

flag_int.goH A D06-Mar-20202.2 KiB

flag_int64.goH A D06-Mar-20202.3 KiB

flag_int64_slice.goH A D06-Mar-20203.6 KiB

flag_int_slice.goH A D06-Mar-20203.9 KiB

flag_path.goH A D06-Mar-20202 KiB

flag_string.goH A D06-Mar-20202.1 KiB

flag_string_slice.goH A D06-Mar-20204 KiB

flag_test.goH A D06-Mar-202050.6 KiB

flag_timestamp.goH A D06-Mar-20203.4 KiB

flag_uint.goH A D06-Mar-20202.3 KiB

flag_uint64.goH A D06-Mar-20202.3 KiB

funcs.goH A D06-Mar-20201.9 KiB

go.modH A D06-Mar-2020183

go.sumH A D06-Mar-20201.3 KiB

help.goH A D06-Mar-20208.9 KiB

help_test.goH A D06-Mar-202020.9 KiB

helpers_test.goH A D06-Mar-2020456

parse.goH A D06-Mar-20202.4 KiB

sort.goH A D06-Mar-2020520

sort_test.goH A D06-Mar-2020587

template.goH A D06-Mar-20203.6 KiB

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
20## Installation
21
22Make sure you have a working Go environment.  Go version 1.11+ is supported. [See the install instructions for Go](http://golang.org/doc/install.html).
23
24Go Modules are strongly recommended when using this package. [See the go blog guide on using Go Modules](https://blog.golang.org/using-go-modules).
25
26### Using `v2` releases
27
28```
29$ GO111MODULE=on go get github.com/urfave/cli/v2
30```
31
32```go
33...
34import (
35  "github.com/urfave/cli/v2" // imports as package "cli"
36)
37...
38```
39
40### Using `v1` releases
41
42```
43$ GO111MODULE=on go get github.com/urfave/cli
44```
45
46```go
47...
48import (
49  "github.com/urfave/cli"
50)
51...
52```
53
54### GOPATH
55
56Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can
57be easily used:
58```
59export PATH=$PATH:$GOPATH/bin
60```
61
62### Supported platforms
63
64cli is tested against multiple versions of Go on Linux, and against the latest
65released version of Go on OS X and Windows. This project uses Github Actions for
66builds. For more build info, please look at the [./.github/workflows/cli.yml](https://github.com/urfave/cli/blob/master/.github/workflows/cli.yml).
67