We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c70ab4 commit eceda3bCopy full SHA for eceda3b
Formula/y/yuque-dl.rb
@@ -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
20
+end
0 commit comments