deploy: print verbosity level

This commit is contained in:
Christopher Monsanto
2020-08-23 21:23:53 -04:00
parent ebf11f6c86
commit b79a6ea804
2 changed files with 16 additions and 8 deletions

View File

@@ -74,9 +74,11 @@ export class ActionQueue {
}
}
print() {
print(level : 'errors' | 'all') {
for (const entry of this.log) {
if (entry.type === 'Copy') {
if (entry.valid === 'Success' && level === 'errors')
continue;
let addendum = '';
if (entry.valid !== 'Success') {
addendum = ` (${entry.valid})`;