-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial configuration of lhctl formula
- Loading branch information
1 parent
2cdcb61
commit cb6f0ce
Showing
4 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
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,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 |
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,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. |
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