From f8234cc1d0774b675abd3381d58332271c5edbbc Mon Sep 17 00:00:00 2001 From: amantahiliani Date: Fri, 23 May 2025 00:19:09 -0400 Subject: [PATCH] Initial commit --- Formula/todo.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/todo.rb diff --git a/Formula/todo.rb b/Formula/todo.rb new file mode 100644 index 0000000..4a774b4 --- /dev/null +++ b/Formula/todo.rb @@ -0,0 +1,16 @@ +class Todo < Formula + desc "A simple CLI todo application written in Go" + homepage "https://github.com/AmanTahiliani/todo" + version "v0.3.1-alpha" + license "MIT" + + depends_on "go" => :build + + def install + system "go", "build", "-o", bin/"todo", "./cmd/todo" + end + + test do + system "#{bin}/todo", "--help" + end +end \ No newline at end of file