@@ -67,25 +67,25 @@ func RunCreatePrompts(fs afero.Fs) (CreatePrompts, error) {
6767
6868 switch category {
6969 case "action" :
70- actionRes , actionErr := ui .Input ("What is the action?" )
70+ actionRes , actionErr := ui .Input (ui. InputProps { Title : "What is the action?" } )
7171 if actionErr != nil {
7272 return CreatePrompts {}, actionErr
7373 }
7474
75- aliasRes , aliasErr := ui .Input (fmt .Sprintf ("Alias for (%s)." , actionRes ))
75+ aliasRes , aliasErr := ui .Input (ui. InputProps { Title : fmt .Sprintf ("Alias for (%s)." , actionRes )} )
7676 if aliasErr != nil {
7777 return CreatePrompts {}, aliasErr
7878 }
7979
8080 cp .aliases = []alias.Alias {{Name : aliasRes , Command : actionRes }}
8181
8282 case "directory" :
83- pathRes , pathErr := ui .Input ("What is the path?" )
83+ pathRes , pathErr := ui .Input (ui. InputProps { Title : "What is the path?" } )
8484 if pathErr != nil {
8585 return CreatePrompts {}, pathErr
8686 }
8787
88- aliasRes , aliasErr := ui .Input (fmt .Sprintf ("Alias for (%s)." , pathRes ))
88+ aliasRes , aliasErr := ui .Input (ui. InputProps { Title : fmt .Sprintf ("Alias for (%s)." , pathRes )} )
8989 if aliasErr != nil {
9090 return CreatePrompts {}, aliasErr
9191 }
@@ -102,7 +102,7 @@ func RunCreatePrompts(fs afero.Fs) (CreatePrompts, error) {
102102 cp .aliases = []alias.Alias {{Name : aliasRes , Command : pathRes }}
103103
104104 case "parent" :
105- pathRes , pathErr := ui .Input ("What is the path?" )
105+ pathRes , pathErr := ui .Input (ui. InputProps { Title : "What is the path?" } )
106106 if pathErr != nil {
107107 return CreatePrompts {}, pathErr
108108 }
@@ -130,7 +130,7 @@ func RunCreatePrompts(fs afero.Fs) (CreatePrompts, error) {
130130 }
131131
132132 for _ , projectPath := range projectPaths {
133- aliasRes , aliasErr := ui .Input (fmt .Sprintf ("Alias for (%s) Leave blank to skip." , projectPath ))
133+ aliasRes , aliasErr := ui .Input (ui. InputProps { Title : fmt .Sprintf ("Alias for (%s) Leave blank to skip." , projectPath )} )
134134 if aliasErr != nil {
135135 return CreatePrompts {}, aliasErr
136136 }
0 commit comments