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

..03-May-2022-

.github/H01-Nov-2020-

altsrc/H01-Nov-2020-

autocomplete/H01-Nov-2020-

docs/H01-Nov-2020-

internal/H01-Nov-2020-

testdata/H01-Nov-2020-

.flake8H A D01-Nov-202031

.gitignoreH A D01-Nov-202087

CODE_OF_CONDUCT.mdH A D01-Nov-20203.1 KiB

LICENSEH A D01-Nov-20201.1 KiB

README.mdH A D01-Nov-20202.1 KiB

app.goH A D01-Nov-202013.1 KiB

app_test.goH A D01-Nov-202048.9 KiB

args.goH A D01-Nov-20201 KiB

category.goH A D01-Nov-20201.8 KiB

cli.goH A D01-Nov-2020687

command.goH A D01-Nov-20207 KiB

command_test.goH A D01-Nov-202011.9 KiB

context.goH A D01-Nov-20205.6 KiB

context_test.goH A D01-Nov-202017.1 KiB

docs.goH A D01-Nov-20203.1 KiB

docs_test.goH A D01-Nov-20203 KiB

errors.goH A D01-Nov-20203.4 KiB

errors_test.goH A D01-Nov-20202.6 KiB

fish.goH A D01-Nov-20204.1 KiB

fish_test.goH A D01-Nov-2020335

flag.goH A D01-Nov-20209.4 KiB

flag_bool.goH A D01-Nov-20202.2 KiB

flag_duration.goH A D01-Nov-20202.4 KiB

flag_float64.goH A D01-Nov-20202.3 KiB

flag_float64_slice.goH A D01-Nov-20203.8 KiB

flag_generic.goH A D01-Nov-20202.4 KiB

flag_int.goH A D01-Nov-20202.2 KiB

flag_int64.goH A D01-Nov-20202.3 KiB

flag_int64_slice.goH A D01-Nov-20203.6 KiB

flag_int_slice.goH A D01-Nov-20203.9 KiB

flag_path.goH A D01-Nov-20202 KiB

flag_string.goH A D01-Nov-20202.1 KiB

flag_string_slice.goH A D01-Nov-20204.2 KiB

flag_test.goH A D01-Nov-202053 KiB

flag_timestamp.goH A D01-Nov-20203.4 KiB

flag_uint.goH A D01-Nov-20202.3 KiB

flag_uint64.goH A D01-Nov-20202.3 KiB

funcs.goH A D01-Nov-20201.9 KiB

go.modH A D01-Nov-2020183

go.sumH A D01-Nov-20201.3 KiB

help.goH A D01-Nov-20209.3 KiB

help_test.goH A D01-Nov-202021.3 KiB

helpers_test.goH A D01-Nov-2020456

parse.goH A D01-Nov-20202.4 KiB

sort.goH A D01-Nov-2020520

sort_test.goH A D01-Nov-2020587

template.goH A D01-Nov-20203.7 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
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