# This file is automatically generated by https://github.com/heroku/cli/blob/main/scripts/release/homebrew.js # Do not update this file directly; # Please update the template instead: # https://github.com/heroku/cli/blob/main/scripts/release/homebrew/templates/heroku.rb class Heroku < Formula desc "Everything you need to get started with Heroku" homepage "https://cli.heroku.com" url "https://cli-assets.heroku.com/versions/8.11.5/df5cd30/heroku-v8.11.5-df5cd30-darwin-x64.tar.xz" sha256 "4c67a61abd4f302eb335a70177a45db23811dfb79242ce6a9c55bb0269023a71" version "8.11.5" version_scheme 1 on_macos do on_arm do url "https://cli-assets.heroku.com/versions/8.11.5/df5cd30/heroku-v8.11.5-df5cd30-darwin-arm64.tar.xz" sha256 "b3264e7e09bb691b7ec60c2e5d0ff10d48f099e566c7f24b8be38c9777d9dbea" end end on_linux do on_intel do url "https://cli-assets.heroku.com/versions/8.11.5/df5cd30/heroku-v8.11.5-df5cd30-linux-x64.tar.xz" sha256 "21a86bb38390a54115c64c7b706fea003871b863d062c8abd5e603541348498c" end on_arm do url "https://cli-assets.heroku.com/versions/8.11.5/df5cd30/heroku-v8.11.5-df5cd30-linux-arm.tar.xz" sha256 "bae3b787c7fc2dafb59c7a37dd17cf8efc3d3e6c2d5d71452e200bc74f19126a" end end def install inreplace "bin/heroku", /^CLIENT_HOME=/, "export HEROKU_OCLIF_CLIENT_HOME=#{lib/"client"}\nCLIENT_HOME=" libexec.install Dir["*"] bin.install_symlink libexec/"bin/heroku" bash_completion.install libexec/"autocomplete-scripts/brew/bash" => "heroku" zsh_completion.install libexec/"autocomplete-scripts/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 test do system bin/"heroku", "version" end end