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

..03-May-2022-

.github/H06-Mar-2020-421267

altsrc/H06-Mar-2020-2,5702,066

autocomplete/H06-Mar-2020-4433

docs/H06-Mar-2020-3,7813,094

internal/H06-Mar-2020-315237

testdata/H06-Mar-2020-310186

.flake8H A D06-Mar-202031 32

.gitignoreH A D06-Mar-202087 87

CODE_OF_CONDUCT.mdH A D06-Mar-20203.1 KiB7555

LICENSEH A D06-Mar-20201.1 KiB2217

README.mdH A D06-Mar-20202 KiB6748

app.goH A D06-Mar-202013.1 KiB543391

app_test.goH A D06-Mar-202047.7 KiB2,1551,754

args.goH A D06-Mar-20201 KiB5539

category.goH A D06-Mar-20201.8 KiB8060

cli.goH A D06-Mar-2020687 241

command.goH A D06-Mar-20207.1 KiB302213

command_test.goH A D06-Mar-202011 KiB380338

context.goH A D06-Mar-20205.6 KiB274216

context_test.goH A D06-Mar-202016.8 KiB576516

docs.goH A D06-Mar-20203.1 KiB149122

docs_test.goH A D06-Mar-20203 KiB150114

errors.goH A D06-Mar-20203 KiB13293

errors_test.goH A D06-Mar-20202.3 KiB12392

fish.goH A D06-Mar-20204 KiB193156

fish_test.goH A D06-Mar-2020246 1810

flag.goH A D06-Mar-20209.4 KiB389290

flag_bool.goH A D06-Mar-20202.2 KiB10777

flag_duration.goH A D06-Mar-20202.4 KiB10677

flag_float64.goH A D06-Mar-20202.3 KiB10777

flag_float64_slice.goH A D06-Mar-20203.8 KiB164116

flag_generic.goH A D06-Mar-20202.4 KiB10977

flag_int.goH A D06-Mar-20202.2 KiB10777

flag_int64.goH A D06-Mar-20202.3 KiB10677

flag_int64_slice.goH A D06-Mar-20203.6 KiB160111

flag_int_slice.goH A D06-Mar-20203.9 KiB174121

flag_path.goH A D06-Mar-20202 KiB9668

flag_string.goH A D06-Mar-20202.1 KiB9668

flag_string_slice.goH A D06-Mar-20204 KiB172120

flag_test.goH A D06-Mar-202050.6 KiB1,8001,574

flag_timestamp.goH A D06-Mar-20203.4 KiB153108

flag_uint.goH A D06-Mar-20202.3 KiB10677

flag_uint64.goH A D06-Mar-20202.3 KiB10677

funcs.goH A D06-Mar-20201.9 KiB4512

go.modH A D06-Mar-2020183 107

go.sumH A D06-Mar-20201.3 KiB1514

help.goH A D06-Mar-20208.9 KiB369280

help_test.goH A D06-Mar-202020.9 KiB910779

helpers_test.goH A D06-Mar-2020456 2721

parse.goH A D06-Mar-20202.4 KiB9567

sort.goH A D06-Mar-2020520 3021

sort_test.goH A D06-Mar-2020587 3127

template.goH A D06-Mar-20203.6 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
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