From cb6f0ce46cd0b149c045b7ae48891aea239f2356 Mon Sep 17 00:00:00 2001 From: Mateo Rojas Date: Wed, 11 Oct 2023 09:30:09 -0500 Subject: [PATCH] Initial configuration of lhctl formula --- .gitignore | 1 + Formula/lhctl.rb | 20 ++++++++++++++++++++ LICENSE.txt | 4 ++++ README.md | 12 +++++++++++- 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Formula/lhctl.rb create mode 100644 LICENSE.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/Formula/lhctl.rb b/Formula/lhctl.rb new file mode 100644 index 0000000..7841e07 --- /dev/null +++ b/Formula/lhctl.rb @@ -0,0 +1,20 @@ +class Lhctl < Formula + desc "LittleHorse CLI for managing all things LittleHorse" + homepage "https://littlehorse.dev/docs/developer-guide/lhctl" + url "https://github.com/littlehorse-enterprises/littlehorse.git", + tag: "0.5.0", + revision: "5e0f5e794450d1adf65c962718497fd1a3bcbe92" + license "SSPL-1.0" + head "https://github.com/littlehorse-enterprises/littlehorse.git", branch: "master" + + depends_on "go" => :build + + def install + ldflags = "-X main.version=#{version} -X main.buildSource=homebrew" + system "go", "build", "-C", "lhctl", *std_go_args(ldflags: ldflags) + end + + test do + assert_match "Generally a UserTaskRun", shell_output("#{bin}/lhctl --help") + end +end diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..9210f6f --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,4 @@ +Source code in this repository is covered by the Server +Side Public License (SSPL) version 1, unless the header specifies another license. + +A copy of the SSPL can be found at https://spdx.org/licenses/SSPL-1.0.html. diff --git a/README.md b/README.md index 87051dc..07922fd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# Littlehorse-enterprises Lh +

+LH +

+ +# LittleHorse Homebrew Tap ## How do I install these formulae? @@ -9,3 +13,9 @@ Or `brew tap littlehorse-enterprises/lh` and then `brew install `. ## Documentation `brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh). + +## License + +SSPL LICENSE + +All code in this repository is covered by the [Server Side Public License, Version 1](https://spdx.org/licenses/SSPL-1.0.html). All code is intellectual property of LittleHorse Enterprises LLC.