commit 4087a4f9b999ab88304949358d87037566ec08e3 Author: Dominik Agres Date: Mon Mar 23 19:42:42 2026 +0100 Initial test diff --git a/Formula/cheatsh.rb b/Formula/cheatsh.rb new file mode 100644 index 0000000..b9df25e --- /dev/null +++ b/Formula/cheatsh.rb @@ -0,0 +1,28 @@ +class Myapp < Formula + desc "a terminal cheat sheet for linux" + homepage "https://github.com/agresdominik/cheat_sheet" + url "https://github.com/agresdominik/cheat_sheet/archive/refs/tags/v#{version}.tar.gz" + version "0.0.1" + sha256 "TODO_SHA256" # run: curl -sL | sha256sum + license "GPL-3.0" + + depends_on "go" => :build + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + def caveats + <<~EOS + Default config files are stored in: + #{etc}/cheatsh/ + + To set up your config on first run: + cp #{etc}/cheatsh/commands_template.json ~/.config/cheatsh/ + EOS + end + + test do + system "#{bin}/myapp", "--help" + end +end diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29