mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
18 lines
614 B
JavaScript
18 lines
614 B
JavaScript
/*
|
|
* Maps command name to a command plugin module. Each command plugin module
|
|
* must export a function that takes (documentation, parsedArgs), where
|
|
* documentation is just the main module (index.js), and parsedArgs is
|
|
* { inputs, options, command, commandOptions }
|
|
*
|
|
* Command modules should also export a `description`, which will be used in
|
|
* the main CLI help, and optionally a `parseArgs(yargs, parentArgv)` function
|
|
* to parse additional arguments.
|
|
*/
|
|
|
|
module.exports = {
|
|
'build': require('./build'),
|
|
'serve': require('./serve'),
|
|
'lint': require('./lint'),
|
|
'readme': require('./readme')
|
|
};
|