first commit
This commit is contained in:
47
homebrew/finish.rb
Normal file
47
homebrew/finish.rb
Normal file
@@ -0,0 +1,47 @@
|
||||
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
|
||||
Reference in New Issue
Block a user