Skip to content

Commit a0a6aed

Browse files
author
Vic Shóstak
authored
Merge pull request #60 from create-go-app/dev
Add Homebrew formula to README
2 parents afafe8c + fda00d9 commit a0a6aed

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010

1111
First of all, [download](https://golang.org/dl/) and install **Go**. Version `1.16` or higher is required.
1212

13-
Next, download the **latest** version of the Create Go App CLI to your system:
13+
Installation is done by using the [`go install`](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies) command and rename installed binary in `$GOPATH/bin`:
1414

1515
```bash
16-
go get -u github.com/create-go-app/cli
16+
go install -ldflags="-s -w" github.com/create-go-app/cli && mv $GOPATH/bin/cli $GOPATH/bin/cgapp
1717
```
1818

19-
Installation is done by using the [`go install`](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies) command and rename installed binary in `$GOPATH/bin`:
19+
Also, macOS and GNU/Linux users available way to install via [Homebrew](https://brew.sh/):
2020

2121
```bash
22-
go install -ldflags="-s -w" github.com/create-go-app/cli && mv $GOPATH/bin/cli $GOPATH/bin/cgapp
22+
# Tap a new formula:
23+
brew tap create-go-app/cli
24+
25+
# Installation:
26+
brew install create-go-app/cli/cgapp
2327
```
2428

2529
Let's create a new project via **interactive console UI** (or **CUI** for short) into current folder:
@@ -291,7 +295,6 @@ project:
291295
You can do it by using a version suffix in `go install` command:
292296

293297
```bash
294-
# With an indication of the exact versions:
295298
go install github.com/create-go-app/[email protected]
296299
```
297300

0 commit comments

Comments
 (0)