24 lines
654 B
Ruby
24 lines
654 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/v4.1.2.tar.gz"
|
|
sha256 "390c6878d2a6e521f0ea323dca3c1ee175f246eda178214de3232a30881d32a5"
|
|
license "MIT"
|
|
|
|
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
|