Skip to content

Commit cf01395

Browse files
author
{cocoide}
committed
Update view
1 parent 6b54f44 commit cf01395

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

cmd/docs.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Copyright © 2023 NAME HERE <EMAIL ADDRESS>
44
package cmd
55

66
import (
7+
"fmt"
8+
79
"github.com/cocoide/commitify/static"
810
"github.com/fatih/color"
911
"github.com/spf13/cobra"
@@ -15,7 +17,7 @@ var docsCmd = &cobra.Command{
1517
Short: "Document of commitify",
1618
Run: func(cmd *cobra.Command, args []string) {
1719
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)が選べます")
1921
},
2022
}
2123

cmd/root.go

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
var rootCmd = &cobra.Command{
1010
Use: "commitify",
1111
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 )`,
1214
}
1315

1416
func Execute() {

cmd/suggest.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (m *model) View() string {
109109
return color.RedString(m.errorMsg)
110110
}
111111
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("コミットメッセージ生成中"))
113113
return s
114114
}
115115
var b strings.Builder
@@ -120,8 +120,9 @@ func (m *model) View() string {
120120
return m.textInput.View()
121121
}
122122

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"))
125126

126127
for i, choice := range m.choices {
127128
if i == m.currentIdx {

0 commit comments

Comments
 (0)