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

..03-May-2022-

.github/H01-Nov-2020-423267

altsrc/H01-Nov-2020-2,6002,086

autocomplete/H01-Nov-2020-5544

docs/H01-Nov-2020-4,0463,279

internal/H01-Nov-2020-315237

testdata/H01-Nov-2020-311187

.flake8H A D01-Nov-202031 32

.gitignoreH A D01-Nov-202087 87

CODE_OF_CONDUCT.mdH A D01-Nov-20203.1 KiB7555

LICENSEH A D01-Nov-20201.1 KiB2217

README.mdH A D01-Nov-20202.1 KiB7150

app.goH A D01-Nov-202013.1 KiB541389

app_test.goH A D01-Nov-202048.9 KiB2,2241,807

args.goH A D01-Nov-20201 KiB5539

category.goH A D01-Nov-20201.8 KiB8060

cli.goH A D01-Nov-2020687 241

command.goH A D01-Nov-20207 KiB301212

command_test.goH A D01-Nov-202011.9 KiB425379

context.goH A D01-Nov-20205.6 KiB274216

context_test.goH A D01-Nov-202017.1 KiB586526

docs.goH A D01-Nov-20203.1 KiB149122

docs_test.goH A D01-Nov-20203 KiB150114

errors.goH A D01-Nov-20203.4 KiB14293

errors_test.goH A D01-Nov-20202.6 KiB143107

fish.goH A D01-Nov-20204.1 KiB197160

fish_test.goH A D01-Nov-2020335 2214

flag.goH A D01-Nov-20209.4 KiB389290

flag_bool.goH A D01-Nov-20202.2 KiB10777

flag_duration.goH A D01-Nov-20202.4 KiB10677

flag_float64.goH A D01-Nov-20202.3 KiB10777

flag_float64_slice.goH A D01-Nov-20203.8 KiB164116

flag_generic.goH A D01-Nov-20202.4 KiB10977

flag_int.goH A D01-Nov-20202.2 KiB10777

flag_int64.goH A D01-Nov-20202.3 KiB10677

flag_int64_slice.goH A D01-Nov-20203.6 KiB160111

flag_int_slice.goH A D01-Nov-20203.9 KiB174121

flag_path.goH A D01-Nov-20202 KiB9668

flag_string.goH A D01-Nov-20202.1 KiB9668

flag_string_slice.goH A D01-Nov-20204.2 KiB181126

flag_test.goH A D01-Nov-202053 KiB1,8831,649

flag_timestamp.goH A D01-Nov-20203.4 KiB155110

flag_uint.goH A D01-Nov-20202.3 KiB10677

flag_uint64.goH A D01-Nov-20202.3 KiB10677

funcs.goH A D01-Nov-20201.9 KiB4512

go.modH A D01-Nov-2020183 107

go.sumH A D01-Nov-20201.3 KiB1514

help.goH A D01-Nov-20209.3 KiB387294

help_test.goH A D01-Nov-202021.3 KiB926790

helpers_test.goH A D01-Nov-2020456 2721

parse.goH A D01-Nov-20202.4 KiB9567

sort.goH A D01-Nov-2020520 3021

sort_test.goH A D01-Nov-2020587 3127

template.goH A D01-Nov-20203.7 KiB12183

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