-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175439 from razvanazamfirei/lando-cli-new-formula
lando-cli 3.21.2 (new formula)
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1288,6 +1288,7 @@ kwok | |
kyma-cli | ||
kyverno | ||
lacework-cli | ||
lando-cli | ||
languagetool | ||
lanraragi | ||
lastpass-cli | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require "language/node" | ||
|
||
class LandoCli < Formula | ||
include Language::Node::Shebang | ||
|
||
desc "Cli part of Lando" | ||
homepage "https://docs.lando.dev/cli" | ||
url "https://github.com/lando/cli/archive/refs/tags/v3.21.2.tar.gz" | ||
sha256 "2b930fa5c7cbe50396d147d3cf51f382e8a7312607f9dcefc04a4ad1399f4a46" | ||
license "GPL-3.0-or-later" | ||
|
||
bottle do | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20" | ||
sha256 cellar: :any_skip_relocation, arm64_ventura: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20" | ||
sha256 cellar: :any_skip_relocation, arm64_monterey: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20" | ||
sha256 cellar: :any_skip_relocation, sonoma: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1" | ||
sha256 cellar: :any_skip_relocation, ventura: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1" | ||
sha256 cellar: :any_skip_relocation, monterey: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "646af2fd4cb091ea4a49556b220b4350f0455088b13dfc408b845a7daf3444d0" | ||
end | ||
|
||
depends_on "node@18" | ||
|
||
def install | ||
system "npm", "install", *Language::Node.std_npm_install_args(libexec) | ||
# We have to replace the shebang in the main executable from "/usr/bin/env node" | ||
rewrite_shebang detected_node_shebang, libexec/"lib/node_modules/@lando/cli/bin/lando" | ||
bin.install_symlink Dir["#{libexec}/bin/*"] | ||
system "#{bin}/lando", "config", "--channel=none" | ||
end | ||
|
||
def caveats | ||
<<~EOS | ||
To complete the installation: | ||
lando setup | ||
EOS | ||
end | ||
|
||
test do | ||
output = shell_output("#{bin}/lando config --path proxyIp") | ||
assert_match "127.0.0.1", output | ||
end | ||
end |