mirror of
https://github.com/smogon/sprites.git
synced 2026-04-24 14:57:28 -05:00
deploy: write info to stderr instead of stdout
interferes with tar
This commit is contained in:
parent
9d3e9abebf
commit
608a112faa
|
|
@ -17,7 +17,7 @@ async function runAq(aq : script.ActionQueue, mode: 'copy' | 'link' | 'tar', out
|
|||
await aq.run(outputDir, mode);
|
||||
} else {
|
||||
if (level === 'errors') {
|
||||
console.log(`Success, but nothing to do. Please rerun with -v or -o`);
|
||||
console.error(`Success, but nothing to do. Please rerun with -v or -o`);
|
||||
} else {
|
||||
aq.print('all');
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ program
|
|||
}
|
||||
|
||||
const aq = new script.ActionQueue;
|
||||
|
||||
|
||||
for (const src of files) {
|
||||
script.runOnFile(scr, src, aq);
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ program
|
|||
const scr = new script.Script(file, 'file');
|
||||
script.run(scr, nodePath.dirname(file), aq);
|
||||
}
|
||||
|
||||
|
||||
await runAq(aq, tar ? 'tar' : link ? 'link' : 'copy', outputDir, verbose);
|
||||
});
|
||||
|
||||
|
|
@ -77,4 +77,3 @@ program.parse(process.argv);
|
|||
if (process.argv.slice(2).length === 0) {
|
||||
program.outputHelp();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,19 +113,19 @@ export class ActionQueue {
|
|||
addendum = ` (${entry.valid})`;
|
||||
}
|
||||
for (const obj of entry.debugObjs) {
|
||||
console.log("DEBUG:", obj);
|
||||
console.error("DEBUG:", obj);
|
||||
}
|
||||
if (op.type === 'Copy') {
|
||||
console.log(`COPY${addendum}: ${op.src} ==> ${entry.dst}`);
|
||||
console.error(`COPY${addendum}: ${op.src} ==> ${entry.dst}`);
|
||||
} else if (op.type === 'Write') {
|
||||
console.log(`WRITE${addendum}: ${op.data.length} characters ==> ${entry.dst}`);
|
||||
console.error(`WRITE${addendum}: ${op.data.length} characters ==> ${entry.dst}`);
|
||||
}
|
||||
} else if (entry.type === 'Debug') {
|
||||
let addendum = '';
|
||||
if (entry.stray) {
|
||||
addendum = ` (stray)`;
|
||||
}
|
||||
console.log(`GDEBUG${addendum}:`, entry.obj);
|
||||
console.error(`GDEBUG${addendum}:`, entry.obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user