File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ const templatePath = path.join(__dirname, 'template.mdx')
8
8
const create = async ( ) => {
9
9
const hasPosts = await fs . pathExists ( postsPath )
10
10
if ( ! hasPosts ) {
11
- console . log ( chalk . red ( ' About . Not found dir "/page/posts".\n' ) )
11
+ console . log ( chalk . red ( ' Aborted . Not found dir "/page/posts".\n' ) )
12
12
process . exit ( 1 )
13
13
}
14
14
15
15
const promptText = `> You need to specify the post ${ chalk . bold ( 'Filename' ) } (required): `
16
16
const answer = prompt ( chalk . hex ( '#bdbdbd' ) ( promptText ) )
17
17
18
18
if ( ! answer ) {
19
- console . log ( chalk . yellow ( ' About . Nothing has changed.\n' ) )
19
+ console . log ( chalk . yellow ( ' Aborted . Nothing has changed.\n' ) )
20
20
process . exit ( 1 )
21
21
}
22
22
@@ -29,7 +29,7 @@ const create = async () => {
29
29
30
30
const hasFile = await fs . pathExists ( filePath )
31
31
if ( hasFile ) {
32
- console . log ( chalk . red ( ` About . File ${ postsPath } is exists.\n` ) )
32
+ console . log ( chalk . red ( ` Aborted . File ${ postsPath } is exists.\n` ) )
33
33
process . exit ( 1 )
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments