cline.rb 793 B

123456789101112131415161718192021
  1. # IMPORTANT: `npm run postpublish` to update this file after publishing a new version of the package
  2. class Cline < Formula
  3. desc "Autonomous coding agent CLI - capable of creating/editing files, running commands, and more"
  4. homepage "https://cline.bot"
  5. url "https://registry.npmjs.org/cline/-/cline-2.0.0.tgz" # GET from https://registry.npmjs.org/cline/latest tarball URL
  6. sha256 "65bae90401191aeeabfbbc0b315e816aea96742043ba85b90671bf5e19d0761e"
  7. license "Apache-2.0"
  8. depends_on "node@20"
  9. depends_on "ripgrep"
  10. def install
  11. system "npm", "install", *std_npm_args(prefix: false)
  12. bin.install_symlink Dir["#{libexec}/bin/*"]
  13. end
  14. test do
  15. # Test that the binary exists and is executable
  16. assert_match version.to_s, shell_output("#{bin}/cline --version")
  17. end
  18. end