summary: method to clear file and buffer
This commit is contained in:
1 parent
5b367b8566
commit
2e08a0cfe2
2 files changed
+17
-1
No files matched your search
+10
-1
@@ -151,6 +151,15 @@ class MarkdownSummary {
|
||||
return this.emptyBuffer()
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the summary buffer and wipes the summary file
|
||||
*
|
||||
* @returns {MarkdownSummary} markdown summary instance
|
||||
*/
|
||||
async clear(): Promise<MarkdownSummary> {
|
||||
return this.emptyBuffer().write(true)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current summary buffer as a string
|
||||
*
|
||||
@@ -170,7 +179,7 @@ class MarkdownSummary {
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the summary buffer without writing to summary file
|
||||
* Resets the summary buffer without writing to summary file
|
||||
*
|
||||
* @returns {MarkdownSummary} markdown summary instance
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user