Skip to content

Commit eceda3b

Browse files
committed
yuque-dl 1.0.81 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent 7c70ab4 commit eceda3b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/y/yuque-dl.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class YuqueDl < Formula
2+
desc "Knowledge base downloader for Yuque"
3+
homepage "https://github.com/gxr404/yuque-dl"
4+
url "https://registry.npmjs.org/yuque-dl/-/yuque-dl-1.0.81.tgz"
5+
sha256 "41039640509fd213938a7c412fec8a43492d52d30bf3fbdcf5f34c905c7a5b8c"
6+
license "ISC"
7+
8+
depends_on "node"
9+
10+
def install
11+
system "npm", "install", *std_npm_args
12+
bin.install_symlink Dir["#{libexec}/bin/*"]
13+
end
14+
15+
test do
16+
assert_match version.to_s, shell_output("#{bin}/yuque-dl --version")
17+
18+
assert_match "Please enter a valid URL", shell_output("#{bin}/yuque-dl test 2>&1", 1)
19+
end
20+
end

0 commit comments

Comments
 (0)