File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ const mountEmojiPrefixedMessage = (
2020 options ?: PrefixedMessageOptions ,
2121) => mountPrefixedMessage ( emoji . get ( emojiName ) , message , options ) ;
2222
23+ const mountSuccessPrefixedMessage = ( message : string ) =>
24+ mountEmojiPrefixedMessage ( 'tada' , message ) ;
25+
2326const mountErrorPrefixedMessage = ( message : string ) =>
2427 mountPrefixedMessage ( ERROR_PREFIX , message ) ;
2528
@@ -57,8 +60,7 @@ export const UNEXPECTED_ERROR = mountEmojiPrefixedMessage(
5760// Actions
5861// Add action
5962export const ADD_ACTION_SUCCESS = ( project : Project ) =>
60- mountEmojiPrefixedMessage (
61- 'tada' ,
63+ mountSuccessPrefixedMessage (
6264 `Wow! Your project "${ chalk . yellow (
6365 project . getAlias ( ) ,
6466 ) } " has been created with success!`,
@@ -68,8 +70,7 @@ export const ADD_ACTION_SUCCESS = (project: Project) =>
6870export const WITH_ACTION_STARTED = `\nRunning your funny project tasks...\n` ;
6971
7072export const WITH_ACTION_DONE = ( project : Project ) =>
71- mountEmojiPrefixedMessage (
72- 'tada' ,
73+ mountSuccessPrefixedMessage (
7374 `All tasks for ${ chalk . yellow ( project . getAlias ( ) ) } has been executed!` ,
7475 ) ;
7576
You can’t perform that action at this time.
0 commit comments