Skip to content

Commit

Permalink
Remove debug logs and update output message in CLI function
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbraksa committed Oct 11, 2024
1 parent f97dce1 commit 107b188
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export function getGitDiff (execSyncFn = execSync, cwd = process.cwd()) {
? `-- . ${ignoredFiles.map((file) => `':!${file}'`).join(' ')}`
: ''
const cmd = `git diff --staged ${ignoreArg}`
console.log('cmd', cmd)
const diff = execSyncFn(cmd, { cwd }).toString()
return diff
} catch (error) {
Expand All @@ -26,7 +25,7 @@ export async function getCompletion (diff, openAIClient) {
model: 'gpt-4o-mini'
})

console.log('completion', completion)
// console.log('completion', completion)

return completion
}
Expand Down Expand Up @@ -56,7 +55,7 @@ export function main (options) {
}

function runCLI () {
console.log('Running gitai ...')
console.log('Thinking ...')
program
.name('generate')
.description('let AI write your git commit messages')
Expand Down

0 comments on commit 107b188

Please sign in to comment.