Commit 199f0f3 1 parent 681df0b commit 199f0f3 Copy full SHA for 199f0f3
File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 7
7
func colorLogo () string {
8
8
9
9
cyan := color .New (color .FgCyan )
10
- blue := color .New (color .FgBlue )
10
+ blue := color .New (color .FgHiBlue )
11
11
logo := cyan .Sprint (`
12
12
__ __ __
13
13
/ /_/ /___/ /____ __ __
Original file line number Diff line number Diff line change 18
18
ext = ".md"
19
19
20
20
bold = color .New (color .Bold )
21
- blue = color .New (color .FgBlue )
21
+ blue = color .New (color .FgHiBlue )
22
22
red = color .New (color .FgRed )
23
23
cyan = color .New (color .FgCyan )
24
24
white = color .New (color .FgWhite )
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ func (p *Prompt) RenderPage(static bool) error {
42
42
{
43
43
Name : "Tip" ,
44
44
Prompt : & survey.Select {
45
- Message : p .Page .Display () + "\n " ,
46
- Options : options ,
47
- VimMode : true ,
45
+ Message : p .Page .Display () + "\n " ,
46
+ Options : options ,
47
+ VimMode : true ,
48
+ PageSize : len (p .Page .Tips ),
49
+ Help : "Select a command template to fill args." ,
48
50
},
49
51
Validate : survey .Required ,
50
52
},
@@ -63,14 +65,16 @@ func (p *Prompt) RenderPage(static bool) error {
63
65
{{- " "}}(Use{{" "}}{{- color "cyan"}}arrows{{- color "reset"}}` +
64
66
` to move,{{" "}}{{- color "cyan"}}type{{- color "reset"}} to filter or{{" "}}` +
65
67
`{{- color "red"}}ctrl+c{{- color "reset"}} to return{{- if and .Help (not .ShowHelp)}}` +
66
- `, {{ HelpInputRune }} for more help{{end}})
68
+ `. {{""}}{{- color "green"}}{{ HelpInputRune }}{{- color "reset"}} for more{{end}})
69
+ {{- if .ShowHelp }}{{"\n"}}{{- color "green"}}{{ HelpIcon }}{{" "}}{{ .Help }}{{color "reset"}}{{end}}
67
70
{{- "\n\n"}}
68
71
{{- range $ix, $choice := .PageEntries}}
69
72
{{- if eq $ix $.SelectedIndex}}{{color "blue+b"}}{{ "-" }} {{else}}{{color "default"}} {{end}}
70
73
{{- $choice}}
71
74
{{- color "reset"}}{{"\n"}}
72
75
{{- end}}
73
76
{{- end}}`
77
+
74
78
terminal .InterruptErr = errors .New ("\x0d " )
75
79
return nil
76
80
}
You can’t perform that action at this time.
0 commit comments