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