Skip to content

Commit a5b9a60

Browse files
authored
Merge pull request #96 from create-go-app/dev
Release Create Go App CLI v3
2 parents f4825cc + 7680f2e commit a5b9a60

File tree

10 files changed

+81
-27
lines changed

10 files changed

+81
-27
lines changed

.github/workflows/testing_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
go-version: [1.16.x]
16+
go-version: [1.17.x]
1717
platform: [ubuntu-latest, windows-latest, macos-latest]
1818

1919
runs-on: ${{ matrix.platform }}

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
</h1>
55
<p align="center">Create a new production-ready project with <b>backend</b> (Golang), <b>frontend</b> (JavaScript, TypeScript)<br/>and <b>deploy automation</b> (Ansible, Docker) by running one CLI command.<br/><br/>Focus on <b>writing</b> code and <b>thinking</b> of business-logic! The CLI will take care of the rest.</p>
66

7-
<p align="center"><a href="https://github.com/create-go-app/cli/releases" target="_blank"><img src="https://img.shields.io/badge/version-v2.2.8-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli/v2?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.16+-00ADD8?style=for-the-badge&logo=go" alt="go version" /></a>&nbsp;<a href="https://gocover.io/github.com/create-go-app/cli/pkg/cgapp" target="_blank"><img src="https://img.shields.io/badge/Go_Cover-89.2%25-success?style=for-the-badge&logo=none" alt="go cover" /></a>&nbsp;<a href="https://goreportcard.com/report/github.com/create-go-app/cli" target="_blank"><img src="https://img.shields.io/badge/Go_report-A+-success?style=for-the-badge&logo=none" alt="go report" /></a>&nbsp;<img src="https://img.shields.io/badge/license-apache_2.0-red?style=for-the-badge&logo=none" alt="license" /></p>
7+
<p align="center"><a href="https://github.com/create-go-app/cli/releases" target="_blank"><img src="https://img.shields.io/badge/version-v3.0.0-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli/v3?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.17+-00ADD8?style=for-the-badge&logo=go" alt="go version" /></a>&nbsp;<a href="https://gocover.io/github.com/create-go-app/cli/pkg/cgapp" target="_blank"><img src="https://img.shields.io/badge/Go_Cover-89.2%25-success?style=for-the-badge&logo=none" alt="go cover" /></a>&nbsp;<a href="https://goreportcard.com/report/github.com/create-go-app/cli" target="_blank"><img src="https://img.shields.io/badge/Go_report-A+-success?style=for-the-badge&logo=none" alt="go report" /></a>&nbsp;<img src="https://img.shields.io/badge/license-apache_2.0-red?style=for-the-badge&logo=none" alt="license" /></p>
88

99
## ⚡️ Quick start
1010

11-
First of all, [download](https://golang.org/dl/) and install **Go**. Version `1.16` or higher is required.
11+
First of all, [download](https://golang.org/dl/) and install **Go**. Version `1.17` or higher is required.
12+
13+
> If you're looking for the **Create Go App CLI** for Go `1.16`, you can find it [here](https://github.com/create-go-app/cli/tree/v2).
1214
1315
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`:
1416

1517
```bash
16-
go install github.com/create-go-app/cli/v2/cmd/cgapp
18+
go install github.com/create-go-app/cli/v3/cmd/cgapp
1719
```
1820

1921
Also, macOS and GNU/Linux users available way to install via [Homebrew](https://brew.sh/):
@@ -123,6 +125,8 @@ cgapp deploy [OPTION]
123125
- `lit-element-ts` — generated template a TypeScript version of the Lit app.
124126

125127
> ☝️ Frontend part will be generate using awesome tool [Vite.js](https://vitejs.dev/) under the hood. So, you'll always get the latest version of `React`, `Preact`, `Vue`, `Svelte`, `Lit` or pure JavaScript/TypeScript templates for your project!
128+
>
129+
> Please make sure that you have `npm` version `7` or higher installed in order to create the frontend part of the project correctly. If you run the `cgapp create` command using our [Docker image](https://hub.docker.com/r/koddr/cgapp), `npm` of the correct version is **already** included.
126130
127131
## 🚚 Pre-configured Ansible roles
128132

cmd/cgapp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ limitations under the License.
2626
*/
2727
package main
2828

29-
import "github.com/create-go-app/cli/v2/cmd"
29+
import "github.com/create-go-app/cli/v3/cmd"
3030

3131
func main() {
3232
cmd.Execute()

cmd/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/AlecAivazis/survey/v2"
13-
"github.com/create-go-app/cli/v2/pkg/cgapp"
14-
"github.com/create-go-app/cli/v2/pkg/registry"
13+
"github.com/create-go-app/cli/v3/pkg/cgapp"
14+
"github.com/create-go-app/cli/v3/pkg/registry"
1515
"github.com/spf13/cobra"
1616
)
1717

cmd/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"fmt"
99
"time"
1010

11-
"github.com/create-go-app/cli/v2/pkg/cgapp"
12-
"github.com/create-go-app/cli/v2/pkg/registry"
11+
"github.com/create-go-app/cli/v3/pkg/cgapp"
12+
"github.com/create-go-app/cli/v3/pkg/registry"
1313
"github.com/spf13/cobra"
1414
)
1515

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package cmd
66

77
import (
88
"github.com/AlecAivazis/survey/v2"
9-
"github.com/create-go-app/cli/v2/pkg/registry"
9+
"github.com/create-go-app/cli/v3/pkg/registry"
1010
"github.com/spf13/cobra"
1111
)
1212

go.mod

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,36 @@
1-
module github.com/create-go-app/cli/v2
1+
module github.com/create-go-app/cli/v3
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.1
77
github.com/go-git/go-git/v5 v5.4.2
88
github.com/spf13/cobra v1.2.1
99
)
10+
11+
require (
12+
github.com/Microsoft/go-winio v0.5.0 // indirect
13+
github.com/ProtonMail/go-crypto v0.0.0-20210707164159-52430bf6b52c // indirect
14+
github.com/acomagu/bufpipe v1.0.3 // indirect
15+
github.com/emirpasic/gods v1.12.0 // indirect
16+
github.com/go-git/gcfg v1.5.0 // indirect
17+
github.com/go-git/go-billy/v5 v5.3.1 // indirect
18+
github.com/imdario/mergo v0.3.12 // indirect
19+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
20+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
21+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
22+
github.com/kevinburke/ssh_config v1.1.0 // indirect
23+
github.com/mattn/go-colorable v0.1.8 // indirect
24+
github.com/mattn/go-isatty v0.0.13 // indirect
25+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
26+
github.com/mitchellh/go-homedir v1.1.0 // indirect
27+
github.com/sergi/go-diff v1.2.0 // indirect
28+
github.com/spf13/pflag v1.0.5 // indirect
29+
github.com/xanzy/ssh-agent v0.3.1 // indirect
30+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
31+
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f // indirect
32+
golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34 // indirect
33+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
34+
golang.org/x/text v0.3.7 // indirect
35+
gopkg.in/warnings.v0 v0.1.2 // indirect
36+
)

0 commit comments

Comments
 (0)