Skip to content

Commit 1c3260a

Browse files
feat: Add Homebrew formula and install guide
1 parent 96fd5b2 commit 1c3260a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Formula/lazycommit.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
require "language/node"
2+
3+
class Lazycommit < Formula
4+
desc "Writes your git commit messages for you with AI using Groq"
5+
homepage "https://github.com/KartikLabhshetwar/lazycommit"
6+
url "https://registry.npmjs.org/lazycommitt/-/lazycommitt-1.0.8.tgz"
7+
sha256 "a1b0e0e82a0f1ec557329ea7382759587acf6d0c0c901f8905f1b40fdeb1f311"
8+
license "Apache-2.0"
9+
10+
depends_on "node"
11+
12+
def install
13+
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
14+
bin.install_symlink Dir["#{libexec}/bin/*"]
15+
end
16+
17+
test do
18+
assert_match version.to_s, shell_output("#{bin}/lazycommit --version")
19+
end
20+
end
21+
22+

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@
2222
npm install -g lazycommitt
2323
```
2424

25+
### Install via Homebrew (macOS)
26+
27+
```sh
28+
brew tap kartiklabhshetwar/lazycommit
29+
brew install lazycommit
30+
```
31+
32+
Upgrade:
33+
34+
```sh
35+
brew upgrade lazycommit
36+
```
37+
2538
2. Retrieve your API key from [Groq Console](https://console.groq.com/keys)
2639

2740
> Note: If you haven't already, you'll have to create an account and get your API key.

0 commit comments

Comments
 (0)