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

..03-Aug-2021-

.flake8H A D03-Aug-202131 32

.gitignoreH A D03-Aug-202141 44

CODE_OF_CONDUCT.mdH A D03-Aug-20213.1 KiB7555

LICENSEH A D03-Aug-20211.1 KiB2217

README.mdH A D03-Aug-20211.9 KiB7151

app.goH A D03-Aug-202113.1 KiB532381

appveyor.ymlH A D03-Aug-2021508 2921

category.goH A D03-Aug-20211.1 KiB4533

cli.goH A D03-Aug-2021699 231

command.goH A D03-Aug-20219.7 KiB379256

context.goH A D03-Aug-20217.9 KiB349267

docs.goH A D03-Aug-20213.1 KiB149123

errors.goH A D03-Aug-20212.6 KiB11680

fish.goH A D03-Aug-20214.1 KiB195157

flag.goH A D03-Aug-20218.3 KiB347263

flag_bool.goH A D03-Aug-20212.4 KiB11078

flag_bool_t.goH A D03-Aug-20212.4 KiB11178

flag_duration.goH A D03-Aug-20212.5 KiB10774

flag_float64.goH A D03-Aug-20212.4 KiB10774

flag_generic.goH A D03-Aug-20212.5 KiB11175

flag_int.goH A D03-Aug-20212.3 KiB10674

flag_int64.goH A D03-Aug-20212.4 KiB10774

flag_int64_slice.goH A D03-Aug-20214.5 KiB200145

flag_int_slice.goH A D03-Aug-20214.3 KiB199145

flag_string.goH A D03-Aug-20212.2 KiB9967

flag_string_slice.goH A D03-Aug-20214.2 KiB185131

flag_uint.goH A D03-Aug-20212.3 KiB10774

flag_uint64.goH A D03-Aug-20212.4 KiB10774

funcs.goH A D03-Aug-20211.9 KiB4512

go.modH A D03-Aug-2021180 107

go.sumH A D03-Aug-20211.3 KiB1514

help.goH A D03-Aug-20219 KiB364278

parse.goH A D03-Aug-20212.4 KiB9567

sort.goH A D03-Aug-2021520 3021

template.goH A D03-Aug-20213.7 KiB12282

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