class finishSh < Formula desc "LLM-powered command-line finishtion" homepage "https://git.appmodel.nl/Tour/finish" url "https://git.appmodel.nl/Tour/finish/archive/v0.5.0.tar.gz" sha256 "" # Update with actual SHA256 of the release tarball license "BSD-2-Clause" version "0.5.0" depends_on "jq" depends_on "bash" => :optional depends_on "bash-completion@2" => :optional def install bin.install "finish.sh" => "finish" doc.install "README.md" doc.install "LICENSE" end def caveats <<~EOS To complete the installation: 1. Run the installer: finish install 2. Reload your shell: source ~/.bashrc # for bash source ~/.zshrc # for zsh 3. Select a language model: finish model You'll need LM-Studio or Ollama running locally to use finish.sh. LM-Studio: https://lmstudio.ai Ollama: https://ollama.ai For more information, visit: https:/git.appmodel.nl/Tour/finish EOS end test do system "#{bin}/finish", "--help" assert_match "finish.sh", shell_output("#{bin}/finish --help") end end