github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/brew/test_data/standard/Formula/program.rb (about)

     1  class Jx < Formula
     2    desc "A program for helloworld"
     3    homepage "https://program.io/program/"
     4    version "1.0.1"
     5  
     6    url "https://github.com/program-org/program/releases/download/v#{version}/program-darwin-amd64.tar.gz"
     7    sha256 "7d7d380c5f0760027ae73f1663a1e1b340548fd93f68956e6b0e2a0d984774fa"
     8  
     9    def install
    10      bin.install name
    11  
    12      output = Utils.popen_read("SHELL=bash #{bin}/program completion bash")
    13      (bash_completion/"program").write output
    14  
    15      output = Utils.popen_read("SHELL=zsh #{bin}/program completion zsh")
    16      (zsh_completion/"_program").write output
    17  
    18      prefix.install_metafiles
    19    end
    20  
    21  end