Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: alias not working #125

Merged
merged 2 commits into from
Nov 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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