Improve command "parse"

This commit is contained in:
Samy Pessé
2016-02-25 14:45:16 +01:00
parent 1ba63675d5
commit 3cda0643fb
+7
View File
@@ -1,5 +1,6 @@
/* eslint-disable no-console */
var _ = require('lodash');
var path = require('path');
var tinylr = require('tiny-lr');
@@ -23,6 +24,7 @@ module.exports = {
exec: helper.bookCmd(function(book) {
return book.parse()
.then(function() {
book.log.info.ln('Book located in:', book.root);
book.log.info.ln('');
if (book.config.exists()) book.log.info.ln('Configuration:', book.config.path);
@@ -33,6 +35,11 @@ module.exports = {
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);
book.log.info.ln('Pages:');
_.each(book.pages, function(page) {
book.log.info.ln('\t-', page.path);
});
}
});
})