tide/functions/_tide_item_go.fish

7 lines
177 B
Fish
Raw Normal View History

function _tide_item_go
2023-07-07 07:23:51 +03:00
if path is $_tide_parent_dirs/go.mod
2023-07-07 18:06:55 +03:00
go version | string match -qr "(?<v>[\d.]+)"
_tide_print_item go $tide_go_icon' ' $v
2023-07-07 07:23:51 +03:00
end
end