File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Fixed
11+
12+ - zsh auto-complete did not follow the right pattern for people the use auto-completion files
13+
14+ ### Thanks
15+
16+ Thank you to [ @HaleTom ] ( https://github.com/HaleTom ) for reporting the zsh problema at
17+ [ #295 ] ( https://github.com/lucassabreu/clockify-cli/issues/295 ) .
18+
1019## [ v0.63.0] - 2026-03-26
1120
1221### Added
Original file line number Diff line number Diff line change 11package completion
22
33import (
4- "fmt"
5- "io"
64 "strings"
75
86 "github.com/MakeNowJust/heredoc"
@@ -36,7 +34,7 @@ func NewCmdCompletion() *cobra.Command {
3634 case bash :
3735 return cmd .Root ().GenBashCompletion (out )
3836 case zsh :
39- return genZshCompletion ( cmd , out )
37+ return cmd . Root (). GenZshCompletion ( out )
4038 case fish :
4139 return cmd .Root ().GenFishCompletion (out , false )
4240 case powershell :
@@ -85,17 +83,3 @@ func NewCmdCompletion() *cobra.Command {
8583
8684 return cmd
8785}
88-
89- func genZshCompletion (cmd * cobra.Command , w io.Writer ) error {
90- if _ , err := fmt .Fprintln (w ,
91- "autoload -U compinit; compinit" ); err != nil {
92- return err
93- }
94-
95- if err := cmd .Root ().GenZshCompletion (w ); err != nil {
96- return err
97- }
98-
99- _ , err := fmt .Fprintln (w , "compdef _clockify-cli clockify-cli" )
100- return err
101- }
You can’t perform that action at this time.
0 commit comments