homebrew-core/Formula/tmux-xpanes.rb
2018-12-23 22:31:59 +01:00

22 lines
638 B
Ruby

class TmuxXpanes < Formula
desc "Ultimate terminal divider powered by tmux"
homepage "https://github.com/greymd/tmux-xpanes"
url "https://github.com/greymd/tmux-xpanes/archive/v3.1.0.tar.gz"
sha256 "453e9a5df245e024b66f0ef527e96880b559581576979622e5e8eb8b5f950cd2"
bottle :unneeded
depends_on "tmux"
def install
system "./install.sh", prefix
end
test do
# Check options with valid combination
pipe_output("#{bin}/xpanes --dry-run -c echo", "hello", 0)
# Check options with invalid combination (-n requires number)
pipe_output("#{bin}/xpanes --dry-run -n foo -c echo 2>&1", "hello", 4)
end
end