Skip to content

Commit c5dd744

Browse files
committed
📝 update readme, gitignore, add version to root application, add goreleaser config
1 parent bc4f666 commit c5dd744

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ go.work.sum
2424
# IDE
2525
.idea/
2626
vscode/
27+
28+
dist/

.goreleaser.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
4+
version: 2
5+
6+
before:
7+
hooks:
8+
- go mod tidy
9+
10+
builds:
11+
- env:
12+
- CGO_ENABLED=0
13+
goos:
14+
- linux
15+
- windows
16+
- darwin
17+
18+
archives:
19+
- format: tar.gz
20+
# this name template makes the OS and Arch compatible with the results of `uname`.
21+
name_template: >-
22+
{{ .ProjectName }}_
23+
{{- title .Os }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end }}
28+
# use zip for windows archives
29+
format_overrides:
30+
- goos: windows
31+
format: zip
32+
33+
changelog:
34+
sort: asc
35+
filters:
36+
exclude:
37+
- "^docs:"
38+
- "^test:"

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ over your attributes.
2525

2626

2727
## Development
28+
This project is in active development.
29+
30+
If you find any bugs and/or have feature suggestions, feel free to
31+
create issues and pull requests.
32+
33+
Before submitting an issue, please check if it hasn't shown up in other
34+
issues to avoid duplicates.
35+
36+
## License
37+
38+
This project is licensed under Apache 2.0.
39+
You can find the license [here](./LICENSE).

cmd/root.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ import (
2020
"github.com/spf13/cobra"
2121
)
2222

23+
var version = "1.0.0"
24+
2325
var rootCmd = &cobra.Command{
24-
Use: "git-profile",
25-
Short: "Manage and automatically set git user profiles based on the project's origin",
26+
Use: "git-profile",
27+
Version: version,
28+
Short: "Manage and automatically set git user profiles based on the project's origin",
2629
Long: `git-profile is a simple CLI to manage and automatically set git user profiles based on the project's origin.
2730
2831
Save a profile together with its origin and let git-profile set the attributes next time you clone a new repository.

0 commit comments

Comments
 (0)