File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ func runInit(cmd *cobra.Command, args []string) {
106
106
}
107
107
os .Exit (1 )
108
108
}
109
+ utils .UpdateCost (float64 (result .Cost ))
109
110
110
111
// Write config
111
112
config .Commit .Scopes = result .Message .Scopes
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ func runCommit(cmd *cobra.Command, args []string) {
66
66
s := ui .Spinner ("π§ Helping your code express its feelings to future developers..." )
67
67
s .Start ()
68
68
result , err := llm .GenerateCommitMessage (config , diff )
69
+ utils .UpdateCost (float64 (result .Cost ))
69
70
s .Stop ()
70
71
if err != nil {
71
72
fmt .Println ("π° Commitment issues detected: Your code is experiencing emotional resistance!" )
@@ -134,7 +135,6 @@ func runCommit(cmd *cobra.Command, args []string) {
134
135
os .Exit (1 )
135
136
}
136
137
fmt .Println ("π§ Successfully committed! Your relationship with the repo has deepened!" )
137
- utils .UpdateCost (float64 (result .Cost ))
138
138
case ui .CommitOptionEdit :
139
139
fmt .Println ("π§ Starting your self-guided therapy session..." )
140
140
@@ -178,7 +178,6 @@ func runCommit(cmd *cobra.Command, args []string) {
178
178
}
179
179
180
180
fmt .Println ("π Self-therapy complete! You've committed to your own path of growth." )
181
- utils .UpdateCost (float64 (result .Cost ))
182
181
case ui .CommitOptionRerun :
183
182
runCommit (cmd , args )
184
183
case ui .CommitOptionExit :
You canβt perform that action at this time.
0 commit comments