File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ async function main() {
28
28
{ value : "gh-action" , label : "GitHub Action" } ,
29
29
] ,
30
30
} ) ;
31
+
32
+ await consola . start ( "Creating project..." ) ;
33
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
34
+ await consola . success ( "Project created!" ) ;
31
35
}
32
36
33
37
main ( ) ;
Original file line number Diff line number Diff line change
1
+ import { consola } from "./utils" ;
2
+
3
+ async function main ( ) {
4
+ await consola . start ( "Creating project..." ) ;
5
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
6
+ await consola . success ( "Project created!" ) ;
7
+ }
8
+
9
+ main ( ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const TYPE_COLOR_MAP: { [k in LogType]?: string } = {
11
11
fail : "red" ,
12
12
success : "green" ,
13
13
ready : "green" ,
14
- start : "yellow " ,
14
+ start : "magenta " ,
15
15
} ;
16
16
17
17
export const LEVEL_COLOR_MAP : { [ k in LogLevel ] ?: string } = {
@@ -31,7 +31,7 @@ const TYPE_ICONS: { [k in LogType]?: string } = {
31
31
debug : s ( "⚙" , "D" ) ,
32
32
trace : s ( "→" , "→" ) ,
33
33
fail : s ( "✖" , "×" ) ,
34
- start : s ( "⚙ " , "S " ) ,
34
+ start : s ( "◐ " , "o " ) ,
35
35
log : "" ,
36
36
} ;
37
37
You can’t perform that action at this time.
0 commit comments