Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 2.61 KB

CLI_DOCS.md

File metadata and controls

101 lines (75 loc) · 2.61 KB

Members

fs

Quizam. A no-fuss yaml CLI quiz runner.

Functions

init()

Initialise a quiz. Asks for name and author then writes ./quizam.yaml.

cleanse(str)

Helper function to clean strings for comparisons.

select(quiz)Object

Select handles a question with option set and one answer.

multi(quiz)Object

Handles a multiselect question.

input(quiz)Object

Handle question requiring input.

run()

The main run function. It will pass for all .js files in the recursive function and not in the folders specified and generate documentation if it can.

fs

Quizam. A no-fuss yaml CLI quiz runner.

Kind: global variable
Author: Dennis O'Keeffe

init()

Initialise a quiz. Asks for name and author then writes ./quizam.yaml.

Kind: global function

cleanse(str)

Helper function to clean strings for comparisons.

Kind: global function

Param Type
str *

select(quiz) ⇒ Object

Select handles a question with option set and one answer.

Kind: global function
Returns: Object - Prompts function

Param Type Description
quiz * Select question object

multi(quiz) ⇒ Object

Handles a multiselect question.

Kind: global function
Returns: Object - Prompts function

Param Type Description
quiz * Multiselect question object

input(quiz) ⇒ Object

Handle question requiring input.

Kind: global function
Returns: Object - Prompts object

Param Type Description
quiz * Input question object

run()

The main run function. It will pass for all .js files in the recursive function and not in the folders specified and generate documentation if it can.

Kind: global function