Skip to content

Commit 54f4895

Browse files
author
Vic Shóstak
committed
Update license text; Fix golangci-linter issues
1 parent d8b7881 commit 54f4895

File tree

18 files changed

+79
-272
lines changed

18 files changed

+79
-272
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# These are supported funding model platforms
22

3-
github: koddr
43
patreon: koddr
54
custom: https://paypal.me/koddr
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
golangci:
13+
name: Linting Go code
14+
15+
strategy:
16+
matrix:
17+
go-version: [1.16.x]
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: golangci-lint
25+
uses: golangci/golangci-lint-action@v2
26+
with:
27+
version: latest

.github/workflows/testing_build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: Testing CLI
1+
name: Testing
22

33
on:
44
push:
5-
branches: [dev]
5+
branches:
6+
- dev
67
paths:
78
- "**.go"
89

910
jobs:
10-
build:
11+
testing:
1112
name: Testing build
1213

1314
strategy:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2019-present Vic Shóstak <[email protected]> (https://1wa.co)
190+
Copyright 2019-present Vic Shóstak <[email protected]> (https://shostak.dev)
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ test: clean
77
go test -coverprofile=coverage.out ./...
88
go tool cover -func=coverage.out
99

10+
lint:
11+
golangci-lint run
12+
1013
security:
1114
gosec -quiet ./...
1215

13-
install: security test
16+
install: security lint test
1417
CGO_ENABLED=0 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp main.go
1518

1619
build: security test

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.7.4-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.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-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.7.5-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.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-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
1010

cmd/create.go

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
/*
2-
Package cmd includes all of the Create Go App CLI commands.
1+
// Copyright 2019-present Vic Shóstak. All rights reserved.
2+
// Use of this source code is governed by Apache 2.0 license
3+
// that can be found in the LICENSE file.
34

4-
Create a new production-ready project with backend (Golang),
5-
frontend (JavaScript, TypeScript) and deploy automation
6-
(Ansible, Docker) by running one CLI command.
7-
8-
-> Focus on writing code and thinking of business logic!
9-
<- The Create Go App CLI will take care of the rest.
10-
11-
Copyright © 2019-present Vic Shóstak <[email protected]> (https://1wa.co)
12-
13-
Licensed under the Apache License, Version 2.0 (the "License");
14-
you may not use this file except in compliance with the License.
15-
You may obtain a copy of the License at
16-
17-
http://www.apache.org/licenses/LICENSE-2.0
18-
19-
Unless required by applicable law or agreed to in writing, software
20-
distributed under the License is distributed on an "AS IS" BASIS,
21-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
See the License for the specific language governing permissions and
23-
limitations under the License.
24-
*/
255
package cmd
266

277
import (

cmd/deploy.go

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
/*
2-
Package cmd includes all of the Create Go App CLI commands.
1+
// Copyright 2019-present Vic Shóstak. All rights reserved.
2+
// Use of this source code is governed by Apache 2.0 license
3+
// that can be found in the LICENSE file.
34

4-
Create a new production-ready project with backend (Golang),
5-
frontend (JavaScript, TypeScript) and deploy automation
6-
(Ansible, Docker) by running one CLI command.
7-
8-
-> Focus on writing code and thinking of business logic!
9-
<- The Create Go App CLI will take care of the rest.
10-
11-
Copyright © 2019-present Vic Shóstak <[email protected]> (https://1wa.co)
12-
13-
Licensed under the Apache License, Version 2.0 (the "License");
14-
you may not use this file except in compliance with the License.
15-
You may obtain a copy of the License at
16-
17-
http://www.apache.org/licenses/LICENSE-2.0
18-
19-
Unless required by applicable law or agreed to in writing, software
20-
distributed under the License is distributed on an "AS IS" BASIS,
21-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
See the License for the specific language governing permissions and
23-
limitations under the License.
24-
*/
255
package cmd
266

277
import (

cmd/init.go

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
/*
2-
Package cmd includes all of the Create Go App CLI commands.
1+
// Copyright 2019-present Vic Shóstak. All rights reserved.
2+
// Use of this source code is governed by Apache 2.0 license
3+
// that can be found in the LICENSE file.
34

4-
Create a new production-ready project with backend (Golang),
5-
frontend (JavaScript, TypeScript) and deploy automation
6-
(Ansible, Docker) by running one CLI command.
7-
8-
-> Focus on writing code and thinking of business logic!
9-
<- The Create Go App CLI will take care of the rest.
10-
11-
Copyright © 2019-present Vic Shóstak <[email protected]> (https://1wa.co)
12-
13-
Licensed under the Apache License, Version 2.0 (the "License");
14-
you may not use this file except in compliance with the License.
15-
You may obtain a copy of the License at
16-
17-
http://www.apache.org/licenses/LICENSE-2.0
18-
19-
Unless required by applicable law or agreed to in writing, software
20-
distributed under the License is distributed on an "AS IS" BASIS,
21-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
See the License for the specific language governing permissions and
23-
limitations under the License.
24-
*/
255
package cmd
266

277
import (

cmd/root.go

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
/*
2-
Package cmd includes all of the Create Go App CLI commands.
1+
// Copyright 2019-present Vic Shóstak. All rights reserved.
2+
// Use of this source code is governed by Apache 2.0 license
3+
// that can be found in the LICENSE file.
34

4-
Create a new production-ready project with backend (Golang),
5-
frontend (JavaScript, TypeScript) and deploy automation
6-
(Ansible, Docker) by running one CLI command.
7-
8-
-> Focus on writing code and thinking of business logic!
9-
<- The Create Go App CLI will take care of the rest.
10-
11-
Copyright © 2019-present Vic Shóstak <[email protected]> (https://1wa.co)
12-
13-
Licensed under the Apache License, Version 2.0 (the "License");
14-
you may not use this file except in compliance with the License.
15-
You may obtain a copy of the License at
16-
17-
http://www.apache.org/licenses/LICENSE-2.0
18-
19-
Unless required by applicable law or agreed to in writing, software
20-
distributed under the License is distributed on an "AS IS" BASIS,
21-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22-
See the License for the specific language governing permissions and
23-
limitations under the License.
24-
*/
255
package cmd
266

277
import (
@@ -35,15 +15,15 @@ import (
3515
)
3616

3717
var (
38-
useConfigFile bool // indicate using config (from $PWD/.cgapp.yml)
39-
projectConfig map[string]interface{} // parse project config
40-
rolesConfig map[string]interface{} // parse Ansible roles config
41-
backend, frontend, webserver, database string // define project variables
42-
installAnsibleRoles, askBecomePass bool // install Ansible roles, ask become pass
43-
username, host, network, port string // define deploy variables
44-
playbook string = "deploy-playbook.yml" // default Ansible playbook
45-
createAnswers registry.CreateAnswers // define answers variable for `create` command
46-
deployAnswers registry.DeployAnswers // define answers variable for `deploy` command
18+
useConfigFile bool // indicate using config (from $PWD/.cgapp.yml)
19+
projectConfig map[string]interface{} // parse project config
20+
rolesConfig map[string]interface{} // parse Ansible roles config
21+
backend, frontend, webserver string // define project variables
22+
installAnsibleRoles, askBecomePass bool // install Ansible roles, ask become pass
23+
username, host, network, port string // define deploy variables
24+
playbook string = "deploy-playbook.yml" // default Ansible playbook
25+
createAnswers registry.CreateAnswers // define answers variable for `create` command
26+
deployAnswers registry.DeployAnswers // define answers variable for `deploy` command
4727

4828
// Config for survey icons and colors.
4929
// See: https://github.com/mgutz/ansi#style-format

0 commit comments

Comments
 (0)