@@ -17,9 +17,9 @@ var HooksRemoveCmd = &cobra.Command{
1717 Long : `Delete the commit hooks which are created by the cli` ,
1818 Run : func (cmd * cobra.Command , args []string ) {
1919 log .Debug ("hooks rm called" )
20- spin := ui .NewSpinner ()
21- spin .Run ()
22- defer func () { spin .Stop () }()
20+ // spin := ui.NewSpinner()
21+ // spin.Run()
22+ // defer func() { spin.Stop() }()
2323 err := pkg .RemoveAllHookFiles ()
2424 if err != nil {
2525 log .Error (err )
@@ -36,11 +36,11 @@ var HooksInitCmd = &cobra.Command{
3636 Long : `Install the commit hooks into the local .git/hooks/ directory.` ,
3737 Run : func (cmd * cobra.Command , args []string ) {
3838 log .Debug ("hooks init called" )
39- spin := ui .NewSpinner ()
40- spin .Run ()
41- defer func () {
42- spin .Stop ()
43- }()
39+ // spin := ui.NewSpinner()
40+ // spin.Run()
41+ // defer func() {
42+ // spin.Stop()
43+ // }()
4444 err := pkg .CreateAllHookFiles ()
4545 if err != nil {
4646 log .Error (err )
@@ -105,9 +105,9 @@ func init() {
105105func hookCommit (commitMsgFile string , config pkg.Config ) {
106106 log .Debug ("hook --hooks called" )
107107 log .Debug (commitMsg )
108- spin := ui .NewSpinner ()
109- spin .Run ()
110- defer func () { spin .Stop () }()
108+ // spin := ui.NewSpinner()
109+ // spin.Run()
110+ // defer func() { spin.Stop() }()
111111 existentHookFiles , err := pkg .HookFilesExistent ()
112112 if err != nil {
113113 log .Fatalf ("Error checking if hook files existent" )
@@ -132,7 +132,7 @@ func hookCommit(commitMsgFile string, config pkg.Config) {
132132 Desc : parsedMessages .Desc ,
133133 Body : parsedMessages .Body ,
134134 }
135- spin .Stop ()
135+ // spin.Stop()
136136 commitValues := ui .CommitPrompt (config , gitmojis .Gitmojis , initialCommitValues , isBreaking )
137137 commitMessage := fmt .Sprintf ("%s\n \n %s" , commitValues .Title , commitValues .Body )
138138 err = utils .WriteFile (commitMsgFile , []byte (commitMessage ))
0 commit comments