Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Use Unix find to search for all Go manifests and run scans in each directory #3

Merged
merged 10 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add logs
  • Loading branch information
mrysav committed May 13, 2022
commit 2b444b552e26cf4cbb0e8baffe7afff5f7c6215a
7 changes: 3 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ function searchForFile(filename) {
return __awaiter(this, void 0, void 0, function* () {
console.log(`searching for ${filename} in ${process.cwd()}`);
const { stdout } = yield (0, execa_1.default)('find', [
'.',
`'${process.cwd()}'`,
'-name',
`'${filename}'`
], {
cwd: process.cwd()
});
]);
console.log(stdout);
const dirs = stdout
.split('\n')
.filter(s => s.length > 0)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ async function searchForFile (filename:string) {
console.log(`searching for ${filename} in ${process.cwd()}`)

const { stdout } = await execa('find', [
'.',
`'${process.cwd()}'`,
'-name',
`'${filename}'`
],
{
cwd: process.cwd()
})
])

console.log(stdout)

const dirs = stdout
.split('\n')
Expand Down