Files
finish/homebrew/finish.rb
michael1986 2ba8f0a496
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
typo fix
2025-12-02 09:17:23 +01:00

48 lines
1.1 KiB
Ruby

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