homebrew-core/Formula/desk.rb

26 lines
835 B
Ruby

class Desk < Formula
desc "Lightweight workspace manager for the shell"
homepage "https://github.com/jamesob/desk"
url "https://github.com/jamesob/desk/archive/v0.6.0.tar.gz"
sha256 "620bfba5b285d4d445e3ff9e399864063d7b0e500ef9c70d887fb7b157576c45"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, all: "b2da60c73f101b56b6a5ac51ed46427c68cf0194d7229755b4b25a215b1f0c1a"
end
def install
bin.install "desk"
bash_completion.install "shell_plugins/bash/desk"
zsh_completion.install "shell_plugins/zsh/_desk"
fish_completion.install "shell_plugins/fish/desk.fish"
end
test do
(testpath/".desk/desks/test-desk.sh").write("#\n# Description: A test desk\n#")
list = pipe_output("#{bin}/desk list")
assert_match "test-desk", list
assert_match "A test desk", list
end
end