Skip to content

Commit c0bf74b

Browse files
committed
e1s 1.0.51 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent 1c4d70f commit c0bf74b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Formula/e/e1s.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
depends_on "go" => :build
15+
16+
def install
17+
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/e1s"
18+
end
19+
20+
test do
21+
ENV["AWS_REGION"] = "us-east-1"
22+
ENV["AWS_ACCESS_KEY_ID"] = "test"
23+
ENV["AWS_SECRET_ACCESS_KEY"] = "test"
24+
25+
assert_match version.to_s, shell_output("#{bin}/e1s --version")
26+
27+
output = shell_output("#{bin}/e1s --json --region us-east-1 2>&1", 1)
28+
assert_match "e1s failed to start, please check your aws cli credential and permission", output
29+
end
30+
end

0 commit comments

Comments
 (0)