mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
31 lines
626 B
JavaScript
31 lines
626 B
JavaScript
var Logger = require('../utils/logger');
|
|
|
|
var logOptions = {
|
|
name: 'log',
|
|
description: 'Minimum log level to display',
|
|
values: Object.keys(Logger.LEVELS)
|
|
.map(function(s) {
|
|
return s.toLowerCase();
|
|
}),
|
|
defaults: 'info'
|
|
};
|
|
|
|
var formatOption = {
|
|
name: 'format',
|
|
description: 'Format to build to',
|
|
values: ['website', 'json', 'ebook'],
|
|
defaults: 'website'
|
|
};
|
|
|
|
var timingOption = {
|
|
name: 'timing',
|
|
description: 'Print timing debug information',
|
|
defaults: false
|
|
};
|
|
|
|
module.exports = {
|
|
log: logOptions,
|
|
format: formatOption,
|
|
timing: timingOption
|
|
};
|