Skip to content

Commit fd48dd8

Browse files
author
Vic Shóstak
authored
Merge pull request #40 from create-go-app/dev
Update AlecAivazis/survey to v2.2.3
2 parents f04ff7a + e979f63 commit fd48dd8

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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-v1.6.6-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.11+-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-94%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-v1.6.7-blue?style=for-the-badge&logo=none" alt="cli version" /></a>&nbsp;<a href="https://pkg.go.dev/github.com/create-go-app/cli?tab=doc" target="_blank"><img src="https://img.shields.io/badge/Go-1.11+-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-94%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](https://create-go.app/quick-start/)
1010

Taskfile.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ tasks:
88
cmds:
99
- task: build
1010

11-
test:
12-
desc: Test project
13-
cmds:
14-
- go test -coverprofile=coverage.out ./...
15-
- go tool cover -func=coverage.out
16-
1711
security:
1812
desc: Run gosec for project
1913
cmds:
@@ -24,6 +18,12 @@ tasks:
2418
cmds:
2519
- go generate ./...
2620

21+
test:
22+
desc: Test project
23+
cmds:
24+
- go test -coverprofile=coverage.out ./...
25+
- go tool cover -func=coverage.out
26+
2727
build:
2828
desc: Test release CLI
2929
cmds:
@@ -35,30 +35,24 @@ tasks:
3535
install:
3636
desc: Install CLI to $GOPATH/bin
3737
cmds:
38+
- task: generate
3839
- task: security
3940
- task: test
40-
- task: generate
4141
- go build -i -o $GOPATH/bin/cgapp ./*.go
4242

43-
docker-image:
44-
desc: Build Docker image with full features
45-
cmds:
46-
- task: build
47-
- docker build . -t koddr/cgapp
48-
4943
release:
5044
desc: GitHub release for CLI
5145
cmds:
46+
- task: generate
5247
- task: security
5348
- task: test
54-
- git tag -a {{.TAG}} -m "{{.TAG}}"
55-
- git push origin {{.TAG}}
49+
- git tag -a {{.VERSION}} -m "{{.VERSION}}"
5650
- goreleaser --snapshot --skip-publish --rm-dist
5751

5852
delete-tag:
59-
desc: Delete git tag
53+
desc: Delete git tag (version)
6054
cmds:
61-
- git tag --delete {{.TAG}}
55+
- git tag --delete {{.VERSION}}
6256

6357
update-pkg-cache:
6458
desc: Update pkg.go.dev cache for a new version

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/create-go-app/cli
33
go 1.11
44

55
require (
6-
github.com/AlecAivazis/survey/v2 v2.2.2
6+
github.com/AlecAivazis/survey/v2 v2.2.3
77
github.com/go-git/go-git/v5 v5.2.0
88
github.com/spf13/cobra v1.1.1
99
github.com/spf13/viper v1.7.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl
1111
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
1212
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
1313
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
14-
github.com/AlecAivazis/survey/v2 v2.2.2 h1:1I4qBrNsHQE+91tQCqVlfrKe9DEL65949d1oKZWVELY=
15-
github.com/AlecAivazis/survey/v2 v2.2.2/go.mod h1:9FJRdMdDm8rnT+zHVbvQT2RTSTLq0Ttd6q3Vl2fahjk=
14+
github.com/AlecAivazis/survey/v2 v2.2.3 h1:utJR2X4Ibp2fBxdjalQUiMFf3zfQNjA15YE8+ftlKEs=
15+
github.com/AlecAivazis/survey/v2 v2.2.3/go.mod h1:9FJRdMdDm8rnT+zHVbvQT2RTSTLq0Ttd6q3Vl2fahjk=
1616
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
1717
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
1818
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=

pkg/registry/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import "github.com/AlecAivazis/survey/v2"
3030

3131
const (
3232
// CLIVersion version of Create Go App CLI.
33-
CLIVersion = "1.6.6"
33+
CLIVersion = "1.6.7"
3434
// RegexpAnsiblePattern pattern for Ansible roles.
3535
RegexpAnsiblePattern = "^(deploy)$"
3636
// RegexpBackendPattern pattern for backend.

0 commit comments

Comments
 (0)