@@ -3,6 +3,10 @@ version: 2
33before :
44 hooks :
55 - go mod tidy
6+ - mkdir -p completions
7+ - sh -c 'go run main.go completion bash > completions/tmpo.bash'
8+ - sh -c 'go run main.go completion zsh > completions/tmpo.zsh'
9+ - sh -c 'go run main.go completion fish > completions/tmpo.fish'
610
711builds :
812 # macOS (both Intel and Apple Silicon)
@@ -44,32 +48,38 @@ builds:
4448
4549archives :
4650 - id : windows-zip
47- builds : [windows]
51+ ids : [windows]
4852 name_template : >-
4953 {{ .ProjectName }}_
5054 {{- .Version }}_
5155 {{- title .Os }}_
5256 {{- if eq .Arch "amd64" }}x86_64
5357 {{- else if eq .Arch "386" }}i386
5458 {{- else }}{{ .Arch }}{{ end }}
55- format : zip
59+ formats : [ zip]
5660 files :
5761 - README.md
5862 - LICENSE
63+ - completions/tmpo.bash
64+ - completions/tmpo.zsh
65+ - completions/tmpo.fish
5966
6067 - id : unix-targz
61- builds : [macos, linux]
68+ ids : [macos, linux]
6269 name_template : >-
6370 {{ .ProjectName }}_
6471 {{- .Version }}_
6572 {{- title .Os }}_
6673 {{- if eq .Arch "amd64" }}x86_64
6774 {{- else if eq .Arch "386" }}i386
6875 {{- else }}{{ .Arch }}{{ end }}
69- format : tar.gz
76+ formats : [ tar.gz]
7077 files :
7178 - README.md
7279 - LICENSE
80+ - completions/tmpo.bash
81+ - completions/tmpo.zsh
82+ - completions/tmpo.fish
7383
7484checksum :
7585 name_template : ' checksums.txt'
@@ -78,40 +88,6 @@ checksum:
7888snapshot :
7989 version_template : " {{ incpatch .Version }}-next"
8090
81- changelog :
82- sort : asc
83- groups :
84- - title : β¨ Features
85- regexp : ' ^.*?feat(\([[:word:]]+\))??!?:.+$'
86- order : 0
87- - title : π Bug Fixes
88- regexp : ' ^.*?fix(\([[:word:]]+\))??!?:.+$'
89- order : 1
90- - title : π Performance Improvements
91- regexp : ' ^.*?perf(\([[:word:]]+\))??!?:.+$'
92- order : 2
93- - title : π¨ Refactoring
94- regexp : ' ^.*?refactor(\([[:word:]]+\))??!?:.+$'
95- order : 3
96- - title : π Documentation
97- regexp : ' ^.*?docs?(\([[:word:]]+\))??!?:.+$'
98- order : 4
99- - title : π§ Build & Dependencies
100- regexp : ' ^.*?(build|ci)(\([[:word:]]+\))??!?:.+$'
101- order : 5
102- - title : π§Ή Maintenance
103- regexp : ' ^.*?chore(\([[:word:]]+\))??!?:.+$'
104- order : 6
105- - title : π¦ Other Changes
106- order : 999
107- filters :
108- exclude :
109- - ' ^test:'
110- - Merge pull request
111- - Merge remote-tracking branch
112- - Merge branch
113- - go mod tidy
114-
11591release :
11692 github :
11793 owner : DylanDevelops
@@ -121,7 +97,7 @@ release:
12197 name_template : " tmpo {{.Version}}"
12298
12399# Homebrew
124- brews :
100+ homebrew_casks :
125101 - name : tmpo
126102 repository :
127103 owner : DylanDevelops
@@ -133,9 +109,7 @@ brews:
133109 homepage : " https://github.com/DylanDevelops/tmpo"
134110 description : " Minimal CLI time tracker for developers"
135111 license : " MIT"
136- skip_upload : false
137- install : |
138- bin.install "tmpo"
139- generate_completions_from_executable(bin/"tmpo", "completion")
140- test : |
141- system bin/"tmpo", "--version"
112+ completions :
113+ bash : " completions/tmpo.bash"
114+ zsh : " completions/tmpo.zsh"
115+ fish : " completions/tmpo.fish"
0 commit comments