Skip to content

Commit

Permalink
the-way 0.20.3 (new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 23, 2024
1 parent 2f64e9f commit cd2036e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3061,6 +3061,7 @@ tfsec
tfupdate
tgui
thanos
the-way
theharvester
thrift
thriftgo
Expand Down
25 changes: 25 additions & 0 deletions Formula/t/the-way.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class TheWay < Formula
desc "Code snippets manager for your terminal"
homepage "https://github.com/out-of-cheese-error/the-way"
url "https://github.com/out-of-cheese-error/the-way/archive/refs/tags/v0.20.3.tar.gz"
sha256 "84e0610f6b74c886c6cfa92cbce5f1d4f4d12b6e504d379c11659ab9ef980e97"
license "MIT"
head "https://github.com/out-of-cheese-error/the-way.git", branch: "master"

depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args

generate_completions_from_executable(bin/"the-way", "complete")
end

test do
assert_match version.to_s, shell_output("#{bin}/the-way --version")

output = shell_output("#{bin}/the-way config default")
assert_match "db_dir = 'the_way_db'", output

system bin/"the-way", "list"
end
end

0 comments on commit cd2036e

Please sign in to comment.