Skip to content

Commit 64b033a

Browse files
authored
Merge pull request #255690 from Homebrew/e1s
e1s 1.0.51 (new formula)
2 parents 73f474d + 6969ad4 commit 64b033a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Formula/e/e1s.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class E1s < Formula
2+
desc "TUI for managing AWS ECS, inspired by k9s"
3+
homepage "https://github.com/keidarcy/e1s"
4+
url "https://github.com/keidarcy/e1s/archive/refs/tags/v1.0.51.tar.gz"
5+
sha256 "c0f368ca487386b9105b675aff066eb9d1f03a31e1edcd2986bccb687c07058e"
6+
license "MIT"
7+
head "https://github.com/keidarcy/e1s.git", branch: "master"
8+
9+
livecheck do
10+
url :stable
11+
strategy :github_latest
12+
end
13+
14+
bottle do
15+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "433ebf2fe184d1973d350cc3af5dbaf2fd881bb66824f75a8af2f0e84799cc10"
16+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "433ebf2fe184d1973d350cc3af5dbaf2fd881bb66824f75a8af2f0e84799cc10"
17+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "433ebf2fe184d1973d350cc3af5dbaf2fd881bb66824f75a8af2f0e84799cc10"
18+
sha256 cellar: :any_skip_relocation, sonoma: "fd1204d8fb9748e1fa1e5fbc4eb02befdb8c2e6c0f72fd0f75b2ae9655e76f2c"
19+
sha256 cellar: :any_skip_relocation, arm64_linux: "7aba9728b9d27885219a5dbc55fc96508f90efca276229641b47989c9e9180c1"
20+
sha256 cellar: :any_skip_relocation, x86_64_linux: "a7f1acef3f4de9c2fee4698f18a55894dd228d2a91135d8ad062554db9593ee8"
21+
end
22+
23+
depends_on "go" => :build
24+
25+
def install
26+
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/e1s"
27+
end
28+
29+
test do
30+
ENV["AWS_REGION"] = "us-east-1"
31+
ENV["AWS_ACCESS_KEY_ID"] = "test"
32+
ENV["AWS_SECRET_ACCESS_KEY"] = "test"
33+
34+
assert_match version.to_s, shell_output("#{bin}/e1s --version")
35+
36+
output = shell_output("#{bin}/e1s --json --region us-east-1 2>&1", 1)
37+
assert_match "e1s failed to start, please check your aws cli credential and permission", output
38+
end
39+
end

0 commit comments

Comments
 (0)