Skip to content

Commit

Permalink
fix: alias not working (#125)
Browse files Browse the repository at this point in the history
* fix: alias not working

* update e2e
  • Loading branch information
sy-records authored Nov 14, 2020
1 parent 57578e4 commit f3af553
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions e2e/cli.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Generated by [AVA](https://ava.li).
`Usage: docsify <init|serve> <path>␊
Commands:␊
docsify init [path] Creates new docs␊
docsify serve [path] Run local server to preview site.␊
docsify init [path] Creates new docs [aliases: i]
docsify serve [path] Run local server to preview site. [aliases: s]
docsify start <path> Server for SSR␊
Global Options␊
Expand All @@ -35,8 +35,8 @@ Generated by [AVA](https://ava.li).
`Usage: docsify <init|serve> <path>␊
Commands:␊
docsify init [path] Creates new docs␊
docsify serve [path] Run local server to preview site.␊
docsify init [path] Creates new docs [aliases: i]
docsify serve [path] Run local server to preview site. [aliases: s]
docsify start <path> Server for SSR␊
Global Options␊
Expand All @@ -57,8 +57,8 @@ Generated by [AVA](https://ava.li).
`Usage: docsify <init|serve> <path>␊
Commands:␊
docsify init [path] Creates new docs␊
docsify serve [path] Run local server to preview site.␊
docsify init [path] Creates new docs [aliases: i]
docsify serve [path] Run local server to preview site. [aliases: s]
docsify start <path> Server for SSR␊
Global Options␊
Expand All @@ -79,8 +79,8 @@ Generated by [AVA](https://ava.li).
`Usage: docsify <init|serve> <path>␊
Commands:␊
docsify init [path] Creates new docs␊
docsify serve [path] Run local server to preview site.␊
docsify init [path] Creates new docs [aliases: i]
docsify serve [path] Run local server to preview site. [aliases: s]
docsify start <path> Server for SSR␊
Global Options␊
Expand Down
Binary file modified e2e/cli.test.js.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require('yargs')
.usage(chalk.bold(y18n.__('usage') + ': docsify <init|serve> <path>'))
.command({
command: 'init [path]',
alias: 'i',
aliases: 'i',
desc: chalk.gray(y18n.__('init')),
builder: yargs =>
yargs.options({
Expand All @@ -47,7 +47,7 @@ require('yargs')
})
.command({
command: 'serve [path]',
alias: 's',
aliases: 's',
desc: chalk.gray(y18n.__('serve')),
builder: yargs =>
yargs.options({
Expand Down

0 comments on commit f3af553

Please sign in to comment.