Skip to content

Commit ef533a7

Browse files
committed
feat(dealer): add clear method to Lanes
1 parent fda9d81 commit ef533a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/@d-zero/dealer/src/lanes.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ export class Lanes {
3232
this.#verbose = options?.verbose ?? false;
3333
}
3434

35+
clear(options?: { header?: boolean }) {
36+
if (this.#verbose) {
37+
return;
38+
}
39+
40+
this.#logs.clear();
41+
42+
if (options?.header) {
43+
this.#header = undefined;
44+
}
45+
46+
this.write();
47+
}
3548
close() {
3649
this.#display.close();
3750
}

0 commit comments

Comments
 (0)