@@ -2,7 +2,7 @@ import { exec } from "child_process";
22import chalk from "chalk" ;
33import { logExec } from "./helper.js" ;
44
5- export function checkIfRepoisGit ( ) {
5+ export function checkIfRepoisGit ( ) {
66 return new Promise ( ( resolve , reject ) => {
77 exec ( "git rev-parse --is-inside-work-tree" , ( err , stdout , stderr ) => {
88 if ( stdout == "true\n" ) resolve ( stdout ) ;
@@ -31,7 +31,7 @@ export function checkIfRepoisGit() {
3131 } ) ;
3232}
3333
34- export async function getStagedFiles ( ) {
34+ export async function getStagedFiles ( ) {
3535 return new Promise ( ( resolve , reject ) => {
3636 exec ( "git diff --cached --name-only" , ( err , stdout , stderr ) => {
3737 if ( err ) {
@@ -53,7 +53,7 @@ export async function getStagedFiles() {
5353 } ) ;
5454}
5555
56- export function commitFiles ( message ) {
56+ export function commitFiles ( message ) {
5757 exec ( `git commit -m "${ message } "` , ( err , stdout , stderr ) => {
5858 if ( err ) {
5959 logExec ( err ) ;
@@ -67,7 +67,7 @@ export function commitFiles(message) {
6767 } ) ;
6868}
6969
70- export async function getUnstagedFiles ( ) {
70+ export async function getUnstagedFiles ( ) {
7171 return new Promise ( ( resolve , reject ) => {
7272 exec ( "git status --porcelain" , ( err , stdout , stderr ) => {
7373 if ( err ) {
@@ -84,7 +84,7 @@ export async function getUnstagedFiles() {
8484 } ) ;
8585}
8686
87- export async function stageFiles ( files ) {
87+ export async function stageFiles ( files ) {
8888 return new Promise ( ( resolve , reject ) => {
8989 exec ( `git add ${ files } ` , ( err , stdout , stderr ) => {
9090 if ( err ) {
0 commit comments