feat(node): re-write using node
This commit is contained in:
7
lib/initializer.js
Normal file
7
lib/initializer.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import path from 'path'
|
||||
import { mkdir, copy } from './file.js'
|
||||
|
||||
export default function init(operatorName, __dirname, extractedDir) {
|
||||
mkdir(extractedDir)
|
||||
copy(path.join(__dirname, 'config', '_template.yaml'), path.join(__dirname, 'config', `${operatorName}.yaml`))
|
||||
}
|
||||
Reference in New Issue
Block a user