Skip to content

Latest commit

 

History

History
134 lines (111 loc) · 3.99 KB

index.js.md

File metadata and controls

134 lines (111 loc) · 3.99 KB

Snapshot report for e2e/index.js

The actual snapshot is saved in index.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␊
  docsify serve [path]  Run local server to preview site.␊
  docsify start <path>  Server for SSR␊

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␊
  docsify serve [path]  Run local server to preview site.␊
  docsify start <path>  Server for SSR␊

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␊
  docsify serve [path]  Run local server to preview site.␊
  docsify start <path>  Server for SSR␊

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 init --help flag

Snapshot 1

`docsify init [path]␊

Creates new docs␊

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

Options:␊
  --local, -l    Copy docsify files to local. To explicitly set --local to false␊
                 you may use --no-local.              [boolean] [default: false]␊
  --theme, -t    Theme file to be used.␊
             [string] [choices: "vue", "buble", "dark", "pure"] [default: "vue"]␊
  --plugins, -p  A list of plugins to be used.                           [array]`

shows up help message without any args

Snapshot 1

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

Commands:␊
  docsify init [path]   Creates new docs␊
  docsify serve [path]  Run local server to preview site.␊
  docsify start <path>  Server for SSR␊

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.0␊
`

shows version information with -v flag

Snapshot 1

`␊
docsify-cli version:␊
  4.4.0␊
`