forked from VirusTotal/vt-cli
-
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 --check-before-scan flag to scan command
Related to VirusTotal#76 Adds a new `--check-before-scan` flag to the `vt scan file` command to enable checking if a file is already known to VirusTotal before uploading it for scanning. This feature aims to save resources by avoiding unnecessary scans of files that have already been analyzed. - Introduces a new boolean flag `checkBeforeScan` in the `fileScanner` struct to store the state of the `--check-before-scan` flag. - Modifies the `NewScanFileCmd` function to register the `--check-before-scan` flag and update the command's help and example texts to reflect the new functionality. - Updates the `scanFileCmdHelp` and `scanFileCmdExample` variables with information about the new flag. - Documentation in `README.md` and `doc/vt_scan_file.md` is updated to include the new `--check-before-scan` flag and its intended use. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/VirusTotal/vt-cli/issues/76?shareId=5e1b3985-b434-466e-8b93-41c586cbcbc6).
- Loading branch information
1 parent
2068b95
commit 8ef047a
Showing
3 changed files
with
21 additions
and
59 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