deploy: add ActionQueue::print

This commit is contained in:
Christopher Monsanto
2020-08-09 05:59:21 -04:00
parent 7b9373d3c7
commit fca3bd0ca3
2 changed files with 7 additions and 3 deletions

View File

@@ -21,6 +21,12 @@ export class ActionQueue {
return this.queue;
}
print() {
for (const {src, dst} of this.queue) {
console.log(`${pathlib.format(src)} ==> ${pathlib.format(dst)}`);
}
}
run(mode : 'link' | 'copy') {
for (const {src, dst} of this.queue) {
fs.mkdirSync(dst.dir, {recursive: true});