Skip to content

Latest commit

 

History

History
119 lines (99 loc) · 3.88 KB

cli.test.js.md

File metadata and controls

119 lines (99 loc) · 3.88 KB

Snapshot report for e2e/cli.test.js

The actual snapshot is saved in cli.test.js.snap.

Generated by AVA.

rejects promise due to error on passing in an unknown command

Snapshot 1

`Usage: docsify <init|serve> <path>␊

Commands:␊
  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␊
  docsify generate <path>  Docsify's generators                     [aliases: g]␊

Global Options␊
  --help, -h     Show help                                             [boolean]␊
  --version, -v  Show version number                                   [boolean]␊

Documentation:␊
  https://docsifyjs.github.io/docsify␊
  https://docsifyjs.github.io/docsify-cli␊

Development:␊
  https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊

Unknown argument: junkcmd`

shows help with --help flag

Snapshot 1

`Usage: docsify <init|serve> <path>␊

Commands:␊
  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␊
  docsify generate <path>  Docsify's generators                     [aliases: g]␊

Global Options␊
  --help, -h     Show help                                             [boolean]␊
  --version, -v  Show version number                                   [boolean]␊

Documentation:␊
  https://docsifyjs.github.io/docsify␊
  https://docsifyjs.github.io/docsify-cli␊

Development:␊
  https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`

shows help with -h flag

Snapshot 1

`Usage: docsify <init|serve> <path>␊

Commands:␊
  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␊
  docsify generate <path>  Docsify's generators                     [aliases: g]␊

Global Options␊
  --help, -h     Show help                                             [boolean]␊
  --version, -v  Show version number                                   [boolean]␊

Documentation:␊
  https://docsifyjs.github.io/docsify␊
  https://docsifyjs.github.io/docsify-cli␊

Development:␊
  https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`

shows up help message without any args

Snapshot 1

`Usage: docsify <init|serve> <path>␊

Commands:␊
  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␊
  docsify generate <path>  Docsify's generators                     [aliases: g]␊

Global Options␊
  --help, -h     Show help                                             [boolean]␊
  --version, -v  Show version number                                   [boolean]␊

Documentation:␊
  https://docsifyjs.github.io/docsify␊
  https://docsifyjs.github.io/docsify-cli␊

Development:␊
  https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊

[ERROR] 0 arguments passed. Please specify a command`

shows version information with --version flag

Snapshot 1

`␊
docsify-cli version:␊
  4.4.4␊
`

shows version information with -v flag

Snapshot 1

`␊
docsify-cli version:␊
  4.4.4␊
`