Refactor into multiple command files #20

Merged
CTO merged 3 commits from refactor/#18 into main 2024-03-08 21:05:21 +00:00
Showing only changes of commit 7b499d7638 - Show all commits

View File

@@ -69,6 +69,7 @@ const command = new Command("commit")
process.exit(0);
}
try {
const changedLines = (
(
await simpleGit().diff(["--numstat", stageAll ? "HEAD" : "--cached"])
@@ -92,6 +93,9 @@ const command = new Command("commit")
process.exit(0);
}
}
} catch {
note("HEAD hasn't been found, skipping commit line amount check");
}
const type: string | symbol = await select({
message: "Choose a commit type",