-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtab-commit-gpt.rb
More file actions
65 lines (57 loc) · 2.22 KB
/
tab-commit-gpt.rb
File metadata and controls
65 lines (57 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class TabCommitGpt < Formula
desc "tab-commit-gpt is a simplest way to generate commit messages — just press `<Tab>` after `git commit -m`."
homepage "https://github.com/devinjeon/tab-commit-gpt"
version "0.3.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/devinjeon/tab-commit-gpt/releases/download/v0.3.0/tab-commit-gpt_v0.3.0_darwin_x86_64.tar.gz"
sha256 "92d4a6b0b1ec2bc0bd0417511f1e5955738b44a035b0d60bc6db584491bbe3a0"
def install
bin.install "tab-commit-gpt"
etc.install "scripts/tab-commit-gpt.zsh"
end
end
if Hardware::CPU.arm?
url "https://github.com/devinjeon/tab-commit-gpt/releases/download/v0.3.0/tab-commit-gpt_v0.3.0_darwin_arm64.tar.gz"
sha256 "095a10c9e9fdf67e535eb5862fa29f3a692aa87c5fe2a65969cd92cf4f2ae717"
def install
bin.install "tab-commit-gpt"
etc.install "scripts/tab-commit-gpt.zsh"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/devinjeon/tab-commit-gpt/releases/download/v0.3.0/tab-commit-gpt_v0.3.0_linux_x86_64.tar.gz"
sha256 "be1bb726ab22f7215df3d4bf7bc7874cc4338ae5239bb1c157ed1bf9b261a171"
def install
bin.install "tab-commit-gpt"
etc.install "scripts/tab-commit-gpt.zsh"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/devinjeon/tab-commit-gpt/releases/download/v0.3.0/tab-commit-gpt_v0.3.0_linux_arm64.tar.gz"
sha256 "fac60e91a118c69b1271b490fe7397044b9df15a60f2ab658b1afb8d3b65f62a"
def install
bin.install "tab-commit-gpt"
etc.install "scripts/tab-commit-gpt.zsh"
end
end
end
end
def post_install
zshrc = File.expand_path("~/.zshrc")
script_line = "source \"#{HOMEBREW_PREFIX}/etc/tab-commit-gpt.zsh\""
ohai "===== [!!! 🚀 ACTION REQUIRED !!!] ====="
ohai "Please run the following command to add tab-commit-gpt to your .zshrc:"
puts
puts " echo '#{script_line}' >> ~/.zshrc"
ohai "========================================"
end
end