-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
7d61de9
commit 0788db7
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2814,6 +2814,7 @@ slides | |
slirp4netns | ||
sloc | ||
slsa-verifier | ||
slumber | ||
slurm | ||
smake | ||
smartdns | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
class Slumber < Formula | ||
desc "Terminal-based HTTP/REST client" | ||
homepage "https://slumber.lucaspickering.me/" | ||
url "https://github.com/LucasPickering/slumber/archive/refs/tags/v2.3.0.tar.gz" | ||
sha256 "9e3266d825180367997e2d2b049e40d74a5d1044e882a14b682bba3780d4883b" | ||
license "MIT" | ||
head "https://github.com/LucasPickering/slumber.git", branch: "master" | ||
|
||
depends_on "rust" => :build | ||
|
||
def install | ||
system "cargo", "install", *std_cargo_args | ||
end | ||
|
||
test do | ||
assert_match version.to_s, shell_output("#{bin}/slumber --version") | ||
|
||
system bin/"slumber", "new" | ||
assert_match <<~YAML, (testpath/"slumber.yml").read | ||
# For basic usage info, see: | ||
# https://slumber.lucaspickering.me/book/getting_started.html | ||
# For all collection options, see: | ||
# https://slumber.lucaspickering.me/book/api/request_collection/index.html | ||
# Profiles are groups of data you can easily switch between. A common usage is | ||
# to define profiles for various environments of a REST service | ||
profiles: | ||
example: | ||
name: Example Profile | ||
data: | ||
host: https://httpbin.org | ||
YAML | ||
end | ||
end |