Files
finish/homebrew/finish.rb
michael1986 24d36cbad4
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled
Tests / test (bash) (push) Has been cancelled
Tests / test (zsh) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled
first commit
2025-12-02 09:02:03 +01:00

48 lines
1.2 KiB
Ruby

class finishteSh < Formula
desc "LLM-powered command-line finishtion"
homepage "https://git.appmodel.nl/Tour/finishte"
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 "finishte.sh" => "finishte"
doc.install "README.md"
doc.install "LICENSE"
end
def caveats
<<~EOS
To complete the installation:
1. Run the installer:
finishte install
2. Reload your shell:
source ~/.bashrc # for bash
source ~/.zshrc # for zsh
3. Select a language model:
finishte model
You'll need LM-Studio or Ollama running locally to use finishte.sh.
LM-Studio: https://lmstudio.ai
Ollama: https://ollama.ai
For more information, visit:
https:/git.appmodel.nl/Tour/finishte
EOS
end
test do
system "#{bin}/finishte", "--help"
assert_match "finishte.sh", shell_output("#{bin}/finishte --help")
end
end