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

..03-May-2022-

.github/H26-Aug-2020-

altsrc/H26-Aug-2020-

autocomplete/H26-Aug-2020-

docs/H26-Aug-2020-

testdata/H26-Aug-2020-

.flake8H A D26-Aug-202031

.gitignoreH A D26-Aug-202041

CODE_OF_CONDUCT.mdH A D26-Aug-20203.1 KiB

LICENSEH A D26-Aug-20201.1 KiB

README.mdH A D26-Aug-20201.9 KiB

app.goH A D26-Aug-202013.1 KiB

app_regression_test.goH A D26-Aug-20201.6 KiB

app_test.goH A D26-Aug-202050.5 KiB

appveyor.ymlH A D26-Aug-2020508

build.goH A D26-Aug-20202.7 KiB

category.goH A D26-Aug-20201.1 KiB

cli.goH A D26-Aug-2020699

command.goH A D26-Aug-20209.7 KiB

command_test.goH A D26-Aug-202011.5 KiB

context.goH A D26-Aug-20207.9 KiB

context_test.goH A D26-Aug-202017.2 KiB

docs.goH A D26-Aug-20203.1 KiB

docs_test.goH A D26-Aug-20202.3 KiB

errors.goH A D26-Aug-20202.6 KiB

errors_test.goH A D26-Aug-20202.3 KiB

fish.goH A D26-Aug-20204.1 KiB

fish_test.goH A D26-Aug-2020246

flag.goH A D26-Aug-20208.3 KiB

flag_bool.goH A D26-Aug-20202.4 KiB

flag_bool_t.goH A D26-Aug-20202.4 KiB

flag_duration.goH A D26-Aug-20202.5 KiB

flag_float64.goH A D26-Aug-20202.4 KiB

flag_generic.goH A D26-Aug-20202.5 KiB

flag_int.goH A D26-Aug-20202.3 KiB

flag_int64.goH A D26-Aug-20202.4 KiB

flag_int64_slice.goH A D26-Aug-20204.5 KiB

flag_int_slice.goH A D26-Aug-20204.3 KiB

flag_string.goH A D26-Aug-20202.2 KiB

flag_string_slice.goH A D26-Aug-20204.2 KiB

flag_test.goH A D26-Aug-202037.1 KiB

flag_uint.goH A D26-Aug-20202.3 KiB

flag_uint64.goH A D26-Aug-20202.4 KiB

funcs.goH A D26-Aug-20201.9 KiB

go.modH A D26-Aug-2020180

go.sumH A D26-Aug-20201.3 KiB

help.goH A D26-Aug-20209 KiB

help_test.goH A D26-Aug-202017.6 KiB

helpers_test.goH A D26-Aug-2020594

helpers_unix_test.goH A D26-Aug-2020126

helpers_windows_test.goH A D26-Aug-2020377

parse.goH A D26-Aug-20202.4 KiB

sort.goH A D26-Aug-2020520

sort_test.goH A D26-Aug-2020587

template.goH A D26-Aug-20203.7 KiB

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