homebrew-core/Formula/tmux-xpanes.rb
2019-02-18 11:25:40 +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.1.tar.gz"
sha256 "b78034b20975c17150cce3bed4b0b86bcfb3c9d0237f76787e8b745492e5ae45"
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