Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97af9c4

Browse files
committed
Fix this error!
1 parent 4617bcd commit 97af9c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/cp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ export default class CpTemplate implements Template {
2828
},
2929
];
3030

31-
async handler(
31+
readonly handler = async (
3232
source_file: string,
3333
dest_path: string,
3434
commit_message: string,
3535
flags: GenerateTemplateCliFlags
36-
) {
36+
) => {
3737
const templateString = `
3838
#!/bin/bash
3939
$FILE="${source_file}"
@@ -47,5 +47,5 @@ git push
4747
const outputPath = await getOutputPath(this, flags);
4848
await writeFile(outputPath, templateString);
4949
console.log(`Output log written to: ${outputPath}`);
50-
}
50+
};
5151
}

0 commit comments

Comments
 (0)