File tree 3 files changed +21
-3
lines changed
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ const test = require('ava');
7
7
const rootCommand = path . join ( process . cwd ( ) , 'bin/docsify' ) ;
8
8
9
9
test ( 'shows up help message without any args' , async t => {
10
- const { stdout } = await execa ( rootCommand , { reject : false } ) ;
11
- t . snapshot ( stdout ) ;
10
+ const { stderr } = await execa ( rootCommand , { reject : false } ) ;
11
+ t . snapshot ( stderr )
12
12
} ) ;
Original file line number Diff line number Diff line change @@ -8,4 +8,22 @@ Generated by [AVA](https://ava.li).
8
8
9
9
> Snapshot 1
10
10
11
- ''
11
+ `Usage: docsify <init|serve> <path>␊
12
+ ␊
13
+ Commands:␊
14
+ docsify init [path] Creates new docs␊
15
+ docsify serve [path] Run local server to preview site.␊
16
+ docsify start <path> Server for SSR␊
17
+ ␊
18
+ Global Options␊
19
+ --help, -h Show help [boolean]␊
20
+ --version, -v Show version number [boolean]␊
21
+ ␊
22
+ Documentation:␊
23
+ https://docsifyjs.github.io/docsify␊
24
+ https://docsifyjs.github.io/docsify-cli␊
25
+ ␊
26
+ Development:␊
27
+ https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
28
+ ␊
29
+ [ERROR] 0 arguments passed. Please specify a command`
You can’t perform that action at this time.
0 commit comments