File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 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>
44package cmd
55
66import (
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
Original file line number Diff line number Diff line change 99var 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
1416func Execute () {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments