Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @pmandloi-atlas @ak-08 @pavanka-atl
* @pmandloi-atlas @ak-08 @pavanka-atl
13 changes: 7 additions & 6 deletions Formula/twg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ class Twg < Formula

on_macos do
on_arm do
url "https://teamwork-graph.atlassian.com/cli/homebrew/0.7.3/twg-0.7.3-darwin-arm64.tar.gz"
url "https://teamwork-graph.atlassian.com/cli/homebrew/#{version}/twg-#{version}-darwin-arm64.tar.gz"
sha256 "b032984d8a04f6460d8baa0e7f2f9439b1aaed23e3937e3a699bb4b1dee2b680"
end
on_intel do
url "https://teamwork-graph.atlassian.com/cli/homebrew/0.7.3/twg-0.7.3-darwin-x64.tar.gz"
url "https://teamwork-graph.atlassian.com/cli/homebrew/#{version}/twg-#{version}-darwin-x64.tar.gz"
sha256 "a09c00b4ff5406a5a7a00de26d1f30cfeac93e9299c46fb4bc05ffc2ec99dd99"
end
end

on_linux do
on_arm do
url "https://teamwork-graph.atlassian.com/cli/homebrew/0.7.3/twg-0.7.3-linux-arm64.tar.gz"
url "https://teamwork-graph.atlassian.com/cli/homebrew/#{version}/twg-#{version}-linux-arm64.tar.gz"
sha256 "a966feddb940cd75bea08130cb730f54f6e154e1bdd31d47ceca404885989393"
end
on_intel do
url "https://teamwork-graph.atlassian.com/cli/homebrew/0.7.3/twg-0.7.3-linux-x64.tar.gz"
url "https://teamwork-graph.atlassian.com/cli/homebrew/#{version}/twg-#{version}-linux-x64.tar.gz"
sha256 "ed1293fdc081c0e4cd5ba6af523d24814fdda299ec34e8e91d6d83f151b353d8"
end
end
Expand All @@ -39,8 +39,9 @@ def caveats
end

test do
assert_match version.to_s, shell_output("#{bin}/twg --version")

output = shell_output("#{bin}/twg doctor -o json")
assert_match "\"command\": \"doctor.get\"", output
assert_match version.to_s, output
assert_match /"command":\s*"doctor.get"/, output
end
end