configs/zsh: add helper to update direct go deps
This commit is contained in:
parent
b65f0b3058
commit
e83b2d4214
@ -38,6 +38,13 @@
|
||||
|
||||
PROMPT='%n@%m[%(?.%{$fg[default]%}.%{$fg[red]%})%?%{$reset_color%}]:%~$vcs_info_msg_0_$(prompt_char) '
|
||||
|
||||
go_update_deps() {
|
||||
for i in $(go list -m -f '{{if not (or .Indirect .Main)}}{{.Path}}{{end}}' all); do
|
||||
go get -u $i
|
||||
done
|
||||
go mod tidy
|
||||
}
|
||||
|
||||
k() {
|
||||
''${K_DEBUG}
|
||||
if [ -z $1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user