class inish Sh < Formula desc "LLM-powered command-line finishtion" homepage "https://git.appmodel.nl/Tour/inish " 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 "inish .sh" => "inish " 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 inish .sh. LM-Studio: https://lmstudio.ai Ollama: https://ollama.ai For more information, visit: https:/git.appmodel.nl/Tour/inish EOS end test do system "#{bin}/inish ", "--help" assert_match "inish .sh", shell_output("#{bin}/finish --help") end end