File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Copyright © 2023 NAME HERE <EMAIL ADDRESS>
4
4
package cmd
5
5
6
6
import (
7
+ "fmt"
8
+
7
9
"github.com/cocoide/commitify/static"
8
10
"github.com/fatih/color"
9
11
"github.com/spf13/cobra"
@@ -15,7 +17,7 @@ var docsCmd = &cobra.Command{
15
17
Short : "Document of commitify" ,
16
18
Run : func (cmd * cobra.Command , args []string ) {
17
19
b , _ := static .Logo .ReadFile ("logo.txt" )
18
- color .Cyan (string (b ))
20
+ fmt . Print ( color .CyanString (string (b )) + " \n \n ・Languageは日本語と英語が選択できます \n \n ・CodeFormatはPrefix (例: feat: A)とEmoji (例: 🐛 Bugix), Normal (例: Feat A)が選べます" )
19
21
},
20
22
}
21
23
Original file line number Diff line number Diff line change 9
9
var rootCmd = & cobra.Command {
10
10
Use : "commitify" ,
11
11
Short : "CLI for thinking commit message" ,
12
+ Long : `By "commitify config" command, you can change commit message format or language,
13
+ ( To know details about format or language, enter commitify docs )` ,
12
14
}
13
15
14
16
func Execute () {
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ func (m *model) View() string {
109
109
return color .RedString (m .errorMsg )
110
110
}
111
111
if m .isLoading {
112
- s := fmt .Sprintf ("\n %s %s\n \n " , m .spinner .View (), textStyle ("Generating commit messages... " ))
112
+ s := fmt .Sprintf ("\n %s %s\n \n " , m .spinner .View (), textStyle ("コミットメッセージ生成中 " ))
113
113
return s
114
114
}
115
115
var b strings.Builder
@@ -120,8 +120,9 @@ func (m *model) View() string {
120
120
return m .textInput .View ()
121
121
}
122
122
123
- b .WriteString (color .WhiteString ("🍕Please select an option:" ))
124
- b .WriteString (color .WhiteString ("\n Use arrow ↑↓ to navigate and press Enter to select.\n \n " ))
123
+ b .WriteString (color .WhiteString ("🍕 Please select and enter to commit" ))
124
+ b .WriteString (color .WhiteString ("\n Use arrow ↑↓ to navigate and press Enter to select." ))
125
+ b .WriteString (color .WhiteString ("\n ( enter Tab key to edit message )\n \n " ))
125
126
126
127
for i , choice := range m .choices {
127
128
if i == m .currentIdx {
You can’t perform that action at this time.
0 commit comments