Update src/main.ts
This commit is contained in:
parent
83183b5a3b
commit
fb45c23bc6
|
@ -11,6 +11,7 @@ const checkForCommonFunctions = async (functionsArray: Array<string>) => {
|
||||||
for (const i of functionsArray) {
|
for (const i of functionsArray) {
|
||||||
const exitCode = await ripGrep(i);
|
const exitCode = await ripGrep(i);
|
||||||
// exitCode of 0 indicates a match in ripGrep
|
// exitCode of 0 indicates a match in ripGrep
|
||||||
|
// TODO: Add check to sentinel.hcl to prevent writing duplicate entries
|
||||||
if(exitCode === 0) {
|
if(exitCode === 0) {
|
||||||
console.log(`found import ${i}, appending to sentinel.hcl`);
|
console.log(`found import ${i}, appending to sentinel.hcl`);
|
||||||
// Add heredoc to sentinel.hcl file if a match is found
|
// Add heredoc to sentinel.hcl file if a match is found
|
||||||
|
|
Loading…
Reference in a new issue