feat(runner): add readme command

This commit is contained in:
Haoyu Xu
2023-01-17 20:47:08 -05:00
parent 61e5ffd214
commit f067e8f194
6 changed files with 15 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ export async function read(filePath, encoding = 'utf8') {
return await fsP.readFile(filePath, encoding, { flag: 'r' })
}
export async function readSync(filePath, encoding = 'utf8') {
export function readSync(filePath, encoding = 'utf8') {
return fs.readFileSync(filePath, encoding, { flag: 'r' })
}
@@ -50,6 +50,6 @@ export async function copy(sourcePath, targetPath) {
return await fsP.copyFile(sourcePath, targetPath)
}
function append(content, filePath) {
export function appendSync(content, filePath) {
return fs.appendFileSync(filePath, content, 'utf8');
}