|
|
|
@ -9,10 +9,6 @@ cli
|
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli)
|
|
|
|
|
[![codecov](https://codecov.io/gh/urfave/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/urfave/cli)
|
|
|
|
|
|
|
|
|
|
This is the library formerly known as `github.com/codegangsta/cli` -- Github
|
|
|
|
|
will automatically redirect requests to this repository, but we recommend
|
|
|
|
|
updating your references for clarity.
|
|
|
|
|
|
|
|
|
|
cli is a simple, fast, and fun package for building command line apps in Go. The
|
|
|
|
|
goal is to enable developers to write fast and distributable command line
|
|
|
|
|
applications in an expressive way.
|
|
|
|
@ -23,7 +19,7 @@ applications in an expressive way.
|
|
|
|
|
- [Installation](#installation)
|
|
|
|
|
* [Supported platforms](#supported-platforms)
|
|
|
|
|
* [Using the `v2` branch](#using-the-v2-branch)
|
|
|
|
|
* [Pinning to the `v1` releases](#pinning-to-the-v1-releases)
|
|
|
|
|
* [Using `v1` releases](#using-v1-releases)
|
|
|
|
|
- [Getting Started](#getting-started)
|
|
|
|
|
- [Examples](#examples)
|
|
|
|
|
* [Arguments](#arguments)
|
|
|
|
@ -108,25 +104,20 @@ import (
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Pinning to the `v1` releases
|
|
|
|
|
|
|
|
|
|
Similarly to the section above describing use of the `v2` branch, if one wants
|
|
|
|
|
to avoid any unexpected compatibility pains once `v2` becomes `master`, then
|
|
|
|
|
pinning to `v1` is an acceptable option, e.g.:
|
|
|
|
|
### Using `v1` releases
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ go get gopkg.in/urfave/cli.v1
|
|
|
|
|
$ go get github.com/urfave/cli
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
``` go
|
|
|
|
|
```go
|
|
|
|
|
...
|
|
|
|
|
import (
|
|
|
|
|
"gopkg.in/urfave/cli.v1" // imports as package "cli"
|
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
|
)
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will pull the latest tagged `v1` release (e.g. `v1.18.1` at the time of writing).
|
|
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
|
|