forked from IBM/license-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --dir to for CLI to scan licenses in a dir instead of a single fi…
…le (IBM#18) * Add --dir to for CLI to scan licenses in a dir instead of a single file Dir is walked recursively. Skipping empty files. IdentifyLicensesInDir just calls IdentifyLicensesInFile after doing a WalkDir. The files are processed in parallel. This doesn't help the API (yet), but it's very useful for testing. Closes IBM#17 Signed-off-by: Mark Sturdevant <[email protected]> * Add file to CLI results when using --dir to make the output more usable The initial implementation of --dir loops and prints for each file like the singular --file. But since --dir can have a bunch of files, need to print the file name on each "FOUND..." and "No licenses..." line, so that we can understand the results better (visually and/or by grepping/sorting/counting). Signed-off-by: Mark Sturdevant <[email protected]> Signed-off-by: Mark Sturdevant <[email protected]>
- Loading branch information
Showing
6 changed files
with
177 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters