(exercisePath)
| 3 | const { splitDirectoryName } = require("./helpers"); |
| 4 | |
| 5 | async function writeReadme(exercisePath) { |
| 6 | const { exerciseNumber, exerciseName } = splitDirectoryName(exercisePath); |
| 7 | const readmeContent = `# Exercise ${exerciseNumber} - ${exerciseName} |
| 8 | |
| 9 | Description of the exercise goes here. |
| 10 | `; |
| 11 | |
| 12 | await writeFile(join(exercisePath, "README.md"), readmeContent); |
| 13 | } |
| 14 | |
| 15 | module.exports = { writeReadme }; |
no test coverage detected