add getStatus and cases

This commit is contained in:
Michael C
2021-09-01 16:52:41 -04:00
parent d6a986d6cf
commit e12724af15
6 changed files with 58 additions and 1 deletions

4
src/utils/getCommit.ts Normal file
View File

@@ -0,0 +1,4 @@
import { execSync } from "child_process";
const gitCommand = "git rev-parse HEAD";
export const getCommit = ():string => execSync(gitCommand).toString().trim();