File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,28 @@ export async function promptForMode(input: boolean | string | undefined) {
33
33
return input ;
34
34
}
35
35
36
+ const label = ( base : string , text : string ) => `${ chalk . bold ( base ) } ${ text } ` ;
37
+
36
38
const selection = filterPromptCancel (
37
39
( await prompts . select ( {
38
40
message : chalk . blue ( "How would you like to use the template?" ) ,
39
41
options : [
40
42
{
41
- label : "-- create a new repository in a child directory",
43
+ label : label ( " create" , " a new repository in a child directory") ,
42
44
value : "create" ,
43
45
} ,
44
46
{
45
- label : "--initialize a freshly repository in the current directory" ,
47
+ label : label (
48
+ "initialize" ,
49
+ "a freshly repository in the current directory" ,
50
+ ) ,
46
51
value : "initialize" ,
47
52
} ,
48
53
{
49
- label : "--migrate an existing repository in the current directory" ,
54
+ label : label (
55
+ "migrate" ,
56
+ "an existing repository in the current directory" ,
57
+ ) ,
50
58
value : "migrate" ,
51
59
} ,
52
60
] ,
You can’t perform that action at this time.
0 commit comments