Consistify formatting.
This commit is contained in:
@@ -48,8 +48,7 @@ Step(
|
||||
mbtiles.metadata('bounds', this.parallel());
|
||||
},
|
||||
function(err, name, type, description, version, format, bounds) {
|
||||
console.warn('');
|
||||
console.warn(' Metadata');
|
||||
console.warn('Metadata');
|
||||
utils.table([
|
||||
['name', name],
|
||||
['type', type],
|
||||
@@ -156,4 +155,4 @@ Step(
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
);
|
||||
);
|
||||
|
||||
@@ -115,7 +115,8 @@ Step(
|
||||
.finalize();
|
||||
});
|
||||
};
|
||||
console.log('00 -------------- 50 -------------- 100');
|
||||
console.warn('00 -------------- 50 -------------- 100');
|
||||
sys.print('');
|
||||
doit(1000, 0);
|
||||
},
|
||||
function(err) {
|
||||
@@ -135,8 +136,8 @@ Step(
|
||||
function(err) {
|
||||
if (err) throw err;
|
||||
sys.print('\n');
|
||||
console.log('Compact hits %s.', hits);
|
||||
console.log('Compaction complete.');
|
||||
console.warn('Compact hits %s.', hits);
|
||||
console.warn('Compaction complete.');
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ utils.table = function(fields) {
|
||||
});
|
||||
fields.forEach(function(field) {
|
||||
console.warn(
|
||||
' ' + field.map(function(val, i) {
|
||||
field.map(function(val, i) {
|
||||
if (i >= lengths.length - 1) return val;
|
||||
return val + Array(lengths[i] - val.toString().length + 1).join(' ');
|
||||
}).join(' ')
|
||||
|
||||
Reference in New Issue
Block a user