class Goenv < Formula desc "Go version management" homepage "https://github.com/syndbg/goenv" url "https://github.com/syndbg/goenv/archive/1.15.0.tar.gz" sha256 "559f83c10d135eaa4b38f7484c7e52eeb053101ae7ac1d7536ef9c1c8a65d6c3" version_scheme 1 head "https://github.com/syndbg/goenv.git" bottle :unneeded def install inreplace "libexec/goenv", "/usr/local", HOMEBREW_PREFIX prefix.install Dir["*"] %w[goenv-install goenv-uninstall go-build].each do |cmd| bin.install_symlink "#{prefix}/plugins/go-build/bin/#{cmd}" end end test do assert_match "Usage: goenv []", shell_output("#{bin}/goenv help") end end