@@ -68,106 +68,6 @@ changelog:
6868 - title : Others
6969 order : 999
7070
71- brews :
72- - name : wtp
73- repository :
74- owner : satococoa
75- name : homebrew-tap
76- token : " {{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
77- url_template : " https://github.com/satococoa/wtp/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
78- download_strategy : CurlDownloadStrategy
79- commit_author :
80- name : goreleaserbot
81- email : bot@goreleaser.com
82- commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
83- homepage : " https://github.com/satococoa/wtp"
84- description : " Worktree Plus - Enhanced worktree management with automated setup and hooks"
85- license : " MIT"
86- skip_upload : auto
87- dependencies :
88- - name : git
89- install : |
90- bin.install "wtp"
91-
92- (bash_completion/"wtp").write <<~'EOS'
93- # wtp lazy shell-init for bash (installed via Homebrew)
94- _wtp_lazy_init() {
95- if [[ -z "${WTP_SHELL_INIT_DONE:-}" ]]; then
96- local __wtp_init __wtp_status
97- __wtp_init="$(command wtp shell-init bash 2>/dev/null)"
98- __wtp_status=$?
99- if [[ $__wtp_status -ne 0 || -z "$__wtp_init" ]]; then
100- __wtp_init="$(command wtp completion bash 2>/dev/null)"
101- __wtp_status=$?
102- fi
103- if [[ $__wtp_status -ne 0 || -z "$__wtp_init" ]]; then
104- return 124
105- fi
106-
107- eval "$__wtp_init"
108- export WTP_SHELL_INIT_DONE=1
109- fi
110-
111- if declare -F __wtp_bash_autocomplete >/dev/null 2>&1; then
112- __wtp_bash_autocomplete "$@"
113- elif declare -F _wtp >/dev/null 2>&1; then
114- _wtp "$@"
115- fi
116- }
117-
118- complete -o bashdefault -o default -o nospace -F _wtp_lazy_init wtp
119- EOS
120-
121- (zsh_completion/"_wtp").write <<~'EOS'
122- #compdef wtp
123-
124- _wtp_lazy_init() {
125- if [[ -z ${WTP_SHELL_INIT_DONE-} ]]; then
126- local __wtp_init __wtp_status
127- __wtp_init="$(command wtp shell-init zsh 2>/dev/null)"
128- __wtp_status=$?
129- if [[ $__wtp_status -ne 0 || -z "$__wtp_init" ]]; then
130- __wtp_init="$(command wtp completion zsh 2>/dev/null)"
131- __wtp_status=$?
132- fi
133- if [[ $__wtp_status -ne 0 || -z "$__wtp_init" ]]; then
134- return 1
135- fi
136-
137- eval "$__wtp_init"
138- export WTP_SHELL_INIT_DONE=1
139- fi
140-
141- if typeset -f _wtp >/dev/null 2>&1; then
142- _wtp "$@"
143- fi
144- }
145-
146- compdef _wtp_lazy_init wtp
147- EOS
148-
149- (fish_completion/"wtp.fish").write <<~'EOS'
150- function __wtp_lazy_setup --on-event fish_prompt --description 'Lazy shell-init for wtp (Homebrew)'
151- functions -e __wtp_lazy_setup
152-
153- if not set -q WTP_SHELL_INIT_DONE
154- command wtp shell-init fish ^/dev/null | source
155- set -l __wtp_status $status
156- if test $__wtp_status -ne 0
157- command wtp completion fish ^/dev/null | source
158- set __wtp_status $status
159- end
160- if test $__wtp_status -ne 0
161- return
162- end
163-
164- set -gx WTP_SHELL_INIT_DONE 1
165- end
166- end
167- EOS
168- test : |
169- system "#{bin}/wtp", "--help"
170-
17171release :
17272 github :
17373 owner : satococoa
0 commit comments