Skip to content

Commit

Permalink
📝 update readme, gitignore, add version to root application, add gore…
Browse files Browse the repository at this point in the history
…leaser config
  • Loading branch information
Shieldine committed Jul 26, 2024
1 parent 301c0cc commit 3bbc9b1
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ go.work.sum
# IDE
.idea/
vscode/

dist/
38 changes: 38 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ over your attributes.


## Development
This project is in active development.

If you find any bugs and/or have feature suggestions, feel free to
create issues and pull requests.

Before submitting an issue, please check if it hasn't shown up in other
issues to avoid duplicates.

## License

This project is licensed under Apache 2.0.
You can find the license [here](./LICENSE).
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ import (
"github.com/spf13/cobra"
)

var version = "1.0.0"

var rootCmd = &cobra.Command{
Use: "git-profile",
Short: "Manage and automatically set git user profiles based on the project's origin",
Use: "git-profile",
Version: version,
Short: "Manage and automatically set git user profiles based on the project's origin",
Long: `git-profile is a simple CLI to manage and automatically set git user profiles based on the project's origin.
Save a profile together with its origin and let git-profile set the attributes next time you clone a new repository.
Expand Down

0 comments on commit 3bbc9b1

Please sign in to comment.