Skip to content

Commit

Permalink
Initial configuration of lhctl formula
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoRojas committed Oct 11, 2023
1 parent 2cdcb61 commit cb6f0ce
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
20 changes: 20 additions & 0 deletions Formula/lhctl.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Littlehorse-enterprises Lh
<p align="center">
<img alt="LH" src="https://littlehorse.dev/img/logo.jpg" width="50%">
</p>

# LittleHorse Homebrew Tap

## How do I install these formulae?

Expand All @@ -9,3 +13,9 @@ Or `brew tap littlehorse-enterprises/lh` and then `brew install <formula>`.
## Documentation

`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

## License

<a href="https://spdx.org/licenses/SSPL-1.0.html"><img alt="SSPL LICENSE" src="https://img.shields.io/badge/covered%20by-SSPL%201.0-blue"></a>

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.

0 comments on commit cb6f0ce

Please sign in to comment.