walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
675 stars 19 forks source link

Use module version when not built with script. #239

Closed lapo-luchini closed 2 months ago

lapo-luchini commented 2 months ago

I often install using go install github.com/walles/moar@latest and while one can use go version -m <binary> it bothers me not to have a working moar --version, this should fix it.

As suggested to me on the Fediverse.

walles commented 2 months ago

Good call, thanks for the patch @lapo-luchini! :)

lapo-luchini commented 2 months ago

Yay! 🎉

% go install github.com/walles/moar@latest
% moar -version
v1.27.0
walles commented 2 months ago

Thanks for confirming @lapo-luchini!