mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 08:35:10 +00:00
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
var Output = require('../output/base');
|
|
var helper = require('./helper');
|
|
|
|
module.exports = {
|
|
commands: [
|
|
|
|
{
|
|
name: 'parse [book]',
|
|
description: 'parse and returns debug information for a book',
|
|
options: [
|
|
helper.options.log
|
|
],
|
|
exec: helper.bookCmd(function(book) {
|
|
return book.parse()
|
|
.then(function() {
|
|
book.log.info.ln('');
|
|
|
|
if (book.config.exists()) book.log.info.ln('Configuration:', book.config.path);
|
|
|
|
if (book.isMultilingual()) {
|
|
book.log.info.ln('Multilingual book detected:', book.langs.path);
|
|
} else {
|
|
book.log.info.ln('Readme:', book.readme.path);
|
|
book.log.info.ln('Summary:', book.summary.path);
|
|
if (book.glossary.exists()) book.log.info.ln('Glossary:', book.glossary.path);
|
|
}
|
|
});
|
|
})
|
|
},
|
|
|
|
{
|
|
name: 'install [book]',
|
|
description: 'install all plugins dependencies',
|
|
options: [
|
|
helper.options.log
|
|
],
|
|
exec: helper.outputCmd(Output, function(output, args) {
|
|
|
|
})
|
|
}
|
|
|
|
|
|
]
|
|
};
|