Skip to content

Commit 2419700

Browse files
authored
Merge pull request #1399 from urfave/docs-pointer
Point to the docs tree and site from top-level README
2 parents 9de0cd3 + 660d25f commit 2419700

2 files changed

Lines changed: 56 additions & 69 deletions

File tree

README.md

Lines changed: 4 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cli
2-
===
1+
# cli
32

43
[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://pkg.go.dev/github.com/urfave/cli/v2)
54
[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/github-com-urfave-cli)
@@ -10,74 +9,10 @@ cli is a simple, fast, and fun package for building command line apps in Go. The
109
goal is to enable developers to write fast and distributable command line
1110
applications in an expressive way.
1211

13-
## Usage Documentation
12+
## Documentation
1413

15-
Usage documentation exists for each major version. Don't know what version you're on? You're probably using the version from the `main` 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-
Guides 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-
26-
Using this package requires a working Go environment. [See the install instructions for Go](http://golang.org/doc/install.html).
27-
28-
Go 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-
$ go get github.com/urfave/cli/v2
34-
```
35-
36-
```go
37-
...
38-
import (
39-
"github.com/urfave/cli/v2" // imports as package "cli"
40-
)
41-
...
42-
```
43-
44-
### Using `v1` releases
45-
46-
```
47-
$ go get github.com/urfave/cli
48-
```
49-
50-
```go
51-
...
52-
import (
53-
"github.com/urfave/cli"
54-
)
55-
...
56-
```
57-
58-
### Build tags
59-
60-
You can use the following build tags:
61-
62-
#### `urfave_cli_no_docs`
63-
64-
When set, this removes `ToMarkdown` and `ToMan` methods, so your application
65-
won't be able to call those. This reduces the resulting binary size by about
66-
300-400 KB (measured using Go 1.18.1 on Linux/amd64), due to fewer dependencies.
67-
68-
### GOPATH
69-
70-
Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can
71-
be easily used:
72-
```
73-
export PATH=$PATH:$GOPATH/bin
74-
```
75-
76-
### Supported platforms
77-
78-
cli is tested against multiple versions of Go on Linux, and against the latest
79-
released version of Go on OS X and Windows. This project uses Github Actions for
80-
builds. To see our currently supported go versions and platforms, look at the [./.github/workflows/cli.yml](https://github.com/urfave/cli/blob/main/.github/workflows/cli.yml).
14+
More documentation is available in [`./docs`](./docs) or the hosted
15+
documentation site at <https://cli.urfave.org>.
8116

8217
## License
8318

docs/index.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,55 @@ In addition to the version-specific guides, these other documents are available:
1919
- [CONTRIBUTING](./CONTRIBUTING/)
2020
- [CODE OF CONDUCT](./CODE_OF_CONDUCT/)
2121
- [RELEASING](./RELEASING/)
22+
23+
## Installation
24+
25+
Using this package requires a working Go environment. [See the install instructions for Go](http://golang.org/doc/install.html).
26+
27+
Go Modules are required when using this package. [See the go blog guide on using Go Modules](https://blog.golang.org/using-go-modules).
28+
29+
### Using `v2` releases
30+
31+
```
32+
$ go get github.com/urfave/cli/v2
33+
```
34+
35+
```go
36+
...
37+
import (
38+
"github.com/urfave/cli/v2" // imports as package "cli"
39+
)
40+
...
41+
```
42+
43+
### Using `v1` releases
44+
45+
```
46+
$ go get github.com/urfave/cli
47+
```
48+
49+
```go
50+
...
51+
import (
52+
"github.com/urfave/cli"
53+
)
54+
...
55+
```
56+
57+
### Build tags
58+
59+
You can use the following build tags:
60+
61+
#### `urfave_cli_no_docs`
62+
63+
When set, this removes `ToMarkdown` and `ToMan` methods, so your application
64+
won't be able to call those. This reduces the resulting binary size by about
65+
300-400 KB (measured using Go 1.18.1 on Linux/amd64), due to fewer dependencies.
66+
67+
### Supported platforms
68+
69+
cli is tested against multiple versions of Go on Linux, and against the latest
70+
released version of Go on OS X and Windows. This project uses Github Actions
71+
for builds. To see our currently supported go versions and platforms, look at
72+
the [github workflow
73+
configuration](https://github.com/urfave/cli/blob/main/.github/workflows/cli.yml).

0 commit comments

Comments
 (0)