diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-25 14:45:16 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-25 14:45:16 +0100 |
commit | 3cda0643fb95806aff16f1b32633763e90437e1b (patch) | |
tree | 00996d07848bb2c086598ef8e032381970683f44 /lib/cli | |
parent | 1ba63675d5f3c97a76861af81cdf23013e551c47 (diff) | |
download | gitbook-3cda0643fb95806aff16f1b32633763e90437e1b.zip gitbook-3cda0643fb95806aff16f1b32633763e90437e1b.tar.gz gitbook-3cda0643fb95806aff16f1b32633763e90437e1b.tar.bz2 |
Improve command "parse"
Diffstat (limited to 'lib/cli')
-rw-r--r-- | lib/cli/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/cli/index.js b/lib/cli/index.js index 58a0e1b..4d3d364 100644 --- a/lib/cli/index.js +++ b/lib/cli/index.js @@ -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); + }); } }); }) |