1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-22 06:53:01 +00:00

identify: send the item number to stdout, but the decorations to stderr

This commit is contained in:
Starbeamrainbowlabs 2020-07-03 16:15:54 +01:00
parent 8e8d510a2c
commit daed644665
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -35,7 +35,9 @@ export default async function(settings) {
let i = 0;
for await(let next of Terrain50.ParseStream(stream)) {
console.log(`${a.fgreen}>>>>> ${a.hicol}Item ${i}${a.reset}${a.fgreen} <<<<<${a.reset}`);
console.error(`${a.fgreen}>>>>> ${a.hicol}`);
console.log(`Item ${i}`);
console.error(`${a.reset}${a.fgreen} <<<<<${a.reset}`);
summarise_obj(next);
i++;