diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-29 17:35:12 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-29 17:35:12 +0100 |
commit | ec353e179dedf1ebf1ab6e54f6217a88d087ea75 (patch) | |
tree | 4a6e90f89a56ea571c0a090e6a524f760da8aa3b /lib/cli/helper.js | |
parent | 496f253e698f1224fa9f9cf88670648ff3930d7a (diff) | |
download | gitbook-ec353e179dedf1ebf1ab6e54f6217a88d087ea75.zip gitbook-ec353e179dedf1ebf1ab6e54f6217a88d087ea75.tar.gz gitbook-ec353e179dedf1ebf1ab6e54f6217a88d087ea75.tar.bz2 |
Remove .gitbook and add "root" option
Diffstat (limited to 'lib/cli/helper.js')
-rw-r--r-- | lib/cli/helper.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/cli/helper.js b/lib/cli/helper.js index e4dc8da..818fd0c 100644 --- a/lib/cli/helper.js +++ b/lib/cli/helper.js @@ -42,12 +42,13 @@ var FORMATS = { function bookCmd(fn) { return function(args, kwargs) { var input = path.resolve(args[0] || process.cwd()); - return Book.setup(nodeFS, input, { + var book = new Book({ + fs: nodeFS, + root: input, logLevel: kwargs.log - }) - .then(function(book) { - return fn(book, args.slice(1), kwargs); }); + + return fn(book, args.slice(1), kwargs); }; } |