File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1- import { exec } from "child_process" ;
2- import { v4 as uuid } from "uuid" ;
1+ import { exec } from "child_process"
2+ import { v4 as uuid } from "uuid"
33
4- import { REPO_URI } from "./constants" ;
5- import { insertDataIntoDB } from "./process/ingest/ingest" ;
6- import { Codebase } from "./process/prepare/codebase" ;
7- import { FileProcessor } from "./process/prepare/processor/file" ;
4+ import { insertDataIntoDB } from "./process/ingest/ingest"
5+ import { Codebase } from "./process/prepare/codebase"
6+ import { FileProcessor } from "./process/prepare/processor/file"
87
98namespace Algorithms {
109 export async function execCommand ( command : string ) {
1110 await new Promise ( ( resolve , reject ) => {
1211 exec ( command , ( error , stdout , stderr ) => {
1312 if ( error ) {
14- reject ( `Error: ${ error . message } ` ) ;
15- return ;
13+ reject ( `Error: ${ error . message } ` )
14+ return
1615 }
1716 if ( stderr ) {
18- reject ( `Stderr: ${ stderr } ` ) ;
19- return ;
17+ reject ( `Stderr: ${ stderr } ` )
18+ return
2019 }
21- resolve ( stdout ) ;
22- } ) ;
23- } ) ;
20+ resolve ( stdout )
21+ } )
22+ } )
2423 }
25-
2624}
2725
2826async function main ( ) {
You can’t perform that action at this time.
0 commit comments