function outputCmd(fn) {
    return bookCmd(function(book, args, kwargs) {
        var Out = FORMATS[kwargs.format];
        var outputFolder = undefined;

        // Set output folder
        if (args[0]) {
            outputFolder = path.resolve(process.cwd(), args[0]);
        }

        return fn(new Out(book, {
            root: outputFolder
        }), args);
    });
}
// Commands which is working on a Output instance
Commands which is working on a Output instance
Commands which is working on a Output instance
function outputCmd(fn) {
    return bookCmd(function(book, args, kwargs) {
        var Out = FORMATS[kwargs.format];
        var outputFolder = undefined;
        if (args[0]) {
            outputFolder = path.resolve(process.cwd(), args[0]);
        }
        return fn(new Out(book, {
            root: outputFolder
        }), args);
    });
}
function outputCmd ( fn ) { return bookCmd ( function ( book , args , kwargs ) { var Out = FORMATS [ kwargs . format ] ; var outputFolder = undefined ; if ( args [ 0 ] ) { outputFolder = path . resolve ( process . cwd ( ) , args [ 0 ] ) ; } return fn ( new Out ( book , { root : outputFolder } ) , args ) ; } ) ; }
Commands which is working on a Output instance
Commands which is working on a Output instance
// Set output folder