summaryrefslogtreecommitdiffstats
path: root/packages/gitbook/src/cli/options.js
blob: d643f91b378259ca2ae47a941dbf814dcf79cee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const Logger = require('../utils/logger');

const logOptions = {
    name: 'log',
    description: 'Minimum log level to display',
    values: Logger.LEVELS
        .keySeq()
        .map(function(s) {
            return s.toLowerCase();
        }).toJS(),
    defaults: 'info'
};

const formatOption = {
    name: 'format',
    description: 'Format to build to',
    values: ['website', 'json', 'ebook'],
    defaults: 'website'
};

const timingOption = {
    name: 'timing',
    description: 'Print timing debug information',
    defaults: false
};

module.exports = {
    log: logOptions,
    format: formatOption,
    timing: timingOption
};