Skip to content

Commit f3af553

Browse files
authoredNov 14, 2020
fix: alias not working (#125)
* fix: alias not working * update e2e
1 parent 57578e4 commit f3af553

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎e2e/cli.test.js.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Generated by [AVA](https://ava.li).
1111
`Usage: docsify <init|serve> <path>␊
1212
1313
Commands:␊
14-
docsify init [path] Creates new docs␊
15-
docsify serve [path] Run local server to preview site.␊
14+
docsify init [path] Creates new docs [aliases: i]
15+
docsify serve [path] Run local server to preview site. [aliases: s]
1616
docsify start <path> Server for SSR␊
1717
1818
Global Options␊
@@ -35,8 +35,8 @@ Generated by [AVA](https://ava.li).
3535
`Usage: docsify <init|serve> <path>␊
3636
3737
Commands:␊
38-
docsify init [path] Creates new docs␊
39-
docsify serve [path] Run local server to preview site.␊
38+
docsify init [path] Creates new docs [aliases: i]
39+
docsify serve [path] Run local server to preview site. [aliases: s]
4040
docsify start <path> Server for SSR␊
4141
4242
Global Options␊
@@ -57,8 +57,8 @@ Generated by [AVA](https://ava.li).
5757
`Usage: docsify <init|serve> <path>␊
5858
5959
Commands:␊
60-
docsify init [path] Creates new docs␊
61-
docsify serve [path] Run local server to preview site.␊
60+
docsify init [path] Creates new docs [aliases: i]
61+
docsify serve [path] Run local server to preview site. [aliases: s]
6262
docsify start <path> Server for SSR␊
6363
6464
Global Options␊
@@ -79,8 +79,8 @@ Generated by [AVA](https://ava.li).
7979
`Usage: docsify <init|serve> <path>␊
8080
8181
Commands:␊
82-
docsify init [path] Creates new docs␊
83-
docsify serve [path] Run local server to preview site.␊
82+
docsify init [path] Creates new docs [aliases: i]
83+
docsify serve [path] Run local server to preview site. [aliases: s]
8484
docsify start <path> Server for SSR␊
8585
8686
Global Options␊

‎e2e/cli.test.js.snap

16 Bytes
Binary file not shown.

‎lib/cli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require('yargs')
2121
.usage(chalk.bold(y18n.__('usage') + ': docsify <init|serve> <path>'))
2222
.command({
2323
command: 'init [path]',
24-
alias: 'i',
24+
aliases: 'i',
2525
desc: chalk.gray(y18n.__('init')),
2626
builder: yargs =>
2727
yargs.options({
@@ -47,7 +47,7 @@ require('yargs')
4747
})
4848
.command({
4949
command: 'serve [path]',
50-
alias: 's',
50+
aliases: 's',
5151
desc: chalk.gray(y18n.__('serve')),
5252
builder: yargs =>
5353
yargs.options({

0 commit comments

Comments
 (0)
Please sign in to comment.