File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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
+ bottle do
9
+ sha256 cellar : :any , arm64_tahoe : "41436c29a4665958f28a894c089416172431d55f781ba6211901e97de4a177a8"
10
+ sha256 cellar : :any , arm64_sequoia : "d226c087bc29796c3d6fa3064f93c7afd0b547b274dc7facaefa4102437462e7"
11
+ sha256 cellar : :any , arm64_sonoma : "d226c087bc29796c3d6fa3064f93c7afd0b547b274dc7facaefa4102437462e7"
12
+ sha256 cellar : :any , sonoma : "000953329ce9afabd28ab3de15ee079a3f6e0f36bbdde017d95d9236e8c9f30d"
13
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "7237877d2337be79ddfb00999acd2aa3e02ac17ba8d46e07fa812930e0507bba"
14
+ end
15
+
16
+ depends_on "node"
17
+
18
+ def install
19
+ system "npm" , "install" , *std_npm_args
20
+ bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
21
+ end
22
+
23
+ test do
24
+ assert_match version . to_s , shell_output ( "#{ bin } /yuque-dl --version" )
25
+
26
+ assert_match "Please enter a valid URL" , shell_output ( "#{ bin } /yuque-dl test 2>&1" , 1 )
27
+ end
28
+ end
You can’t perform that action at this time.
0 commit comments