-
Notifications
You must be signed in to change notification settings - Fork 1
/
cg.rb
40 lines (36 loc) · 1.61 KB
/
cg.rb
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
# This file is automatically generated by https://github.com/heroku/cli/blob/master/scripts/release/homebrew.js
# Do not update this file directly;
# Please update the template instead:
# https://github.com/heroku/cli/blob/master/scripts/release/homebrew/templates/heroku.rb
class Cg < Formula
desc "Query your cloud and SaaS data with GraphQL"
homepage "https://cloudgraph.dev"
version "0.25.1"
url "https://cli-assets.cloudgraph.dev/cg-v0.25.1/cg-v0.25.1-55f50f9-darwin-x64.tar.gz"
sha256 "a817d7ac97b1a87aceb4850c9d30994306b8aae14f5939bbcb1cda6f0428de9a"
def install
inreplace "bin/cg", /^CLIENT_HOME=/, "export CG_OCLIF_CLIENT_HOME=#{lib/"client"}\nCLIENT_HOME="
libexec.install Dir["**"]
bin.install_symlink libexec/"bin/cg"
# bash_completion.install libexec/"node_modules/@heroku-cli/plugin-autocomplete/autocomplete/brew/bash" => "heroku"
# zsh_completion.install libexec/"node_modules/@heroku-cli/plugin-autocomplete/autocomplete/brew/zsh/_heroku"
end
# def caveats; <<~EOS
# To use the Heroku CLI's autocomplete --
# Via homebrew's shell completion:
# 1) Follow homebrew's install instructions https://docs.brew.sh/Shell-Completion
# NOTE: For zsh, as the instructions mention, be sure compinit is autoloaded
# and called, either explicitly or via a framework like oh-my-zsh.
# 2) Then run
# $ heroku autocomplete --refresh-cache
# OR
# Use our standalone setup:
# 1) Run and follow the install steps:
# $ heroku autocomplete
# EOS
# end
# end 3
test do
system bin/"cg", "version"
end
end