-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-context.rb
More file actions
54 lines (48 loc) · 1.92 KB
/
git-context.rb
File metadata and controls
54 lines (48 loc) · 1.92 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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class GitContext < Formula
desc "A powerful CLI tool for managing multiple Git configuration profiles"
homepage "https://github.com/techquestsdev/git-context"
version "1.4.2"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/techquestsdev/git-context/releases/download/v1.4.2/git-context_1.4.2_Darwin_x86_64.tar.gz"
sha256 "06b521978087cf0fd2e0b019463ea64e9793de886d08fb30ab958034bc275cac"
define_method(:install) do
bin.install "git-context"
end
end
if Hardware::CPU.arm?
url "https://github.com/techquestsdev/git-context/releases/download/v1.4.2/git-context_1.4.2_Darwin_arm64.tar.gz"
sha256 "19588efbcad09288812ca864d5e272db259bdff80ada42b0d0b93281cc622dec"
define_method(:install) do
bin.install "git-context"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/techquestsdev/git-context/releases/download/v1.4.2/git-context_1.4.2_Linux_x86_64.tar.gz"
sha256 "0f3bc335938985155a1fbbbbd1033fb026f0c5020dc545ba76ae68359296db30"
define_method(:install) do
bin.install "git-context"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/techquestsdev/git-context/releases/download/v1.4.2/git-context_1.4.2_Linux_arm64.tar.gz"
sha256 "c5086e30080e52f772c6c9a9a9e0dca2ff4dc066508cc23dbb48aeb563358a6c"
define_method(:install) do
bin.install "git-context"
end
end
end
def caveats
<<~EOS
Git Context is a command-line tool for managing multiple Git configuration profiles.
Switch between different Git identities (work, personal, school, etc.) with a single command.
Keywords: git, configuration, profiles, CLI, developer-tools, identity-management
EOS
end
end