You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we add a bin with added dependencies like docopt or do this in a separate gem?
add a bin/stub to the gem for basic functionality?
sketch out some thing like with independent bins
metascan-online metascan-hashlookup metascan-etc
-or-
Use a single bin with deep commands like git metascan online metascan hashlookup
-c --config= [yaml config with api key, and server url]
--api-key= cleartext api key
-o --output-dir= location to store the json output file
[argv] list of files to submit
0 Clean No threat detection or the file is empty.
1 Infected/Known Threat is found.
2 Suspicious Classified as a possible threat but not identified as a specific threat.
3 Failed To Scan Scanning is not fully performed (e.g., invalid file or no read permission).
4 Cleaned Not Applicable.
5 Unknown Scan result does not exist (only for hash lookups).
6 Quarantined Not Applicable.
[..]
The text was updated successfully, but these errors were encountered:
My understanding is that Git actually uses a hybrid approach - the git command delegates based on the second command to binaries such as git-clone, git-add, etc. For example, try man git-add.
In general I think this is a great idea, and will probably be used mostly in automation (or at least poweruser) type contexts. Therefore the command syntax should be structured around ease of automation.
I do think this should be a separate gem with this gem as a dep as otherwise it's unnecessary baggage for those wishing to use the gem programmatically only.
@shadowbq, thanks a lot for your contributions to date. I can't guarantee that I will have time to start working on this in the next couple of weeks (moving between cities, plus I have a day job which sometimes becomes an all-night job) so if you're interested in taking a more hands-on role here, just submit a PR for anything you want to add.
Actually, after looking through the existing libraries for this, it probably won't take too long. I've created https://github.com/graysonc/metascan-cli and will push something, probably involving Thor soon.
Should we add a bin with added dependencies like
docopt
or do this in a separate gem?add a bin/stub to the gem for basic functionality?
sketch out some thing like with independent bins
metascan-online
metascan-hashlookup
metascan-etc
-or-
Use a single bin with deep commands like
git
metascan online
metascan hashlookup
Hashlookup additional flags
Additional functions like
Unix return code match "Definitions - Description of scan_result_i and scan_all_result_i"
https://metascan-online.com/en/public-api#/definitions
0 Clean No threat detection or the file is empty.
1 Infected/Known Threat is found.
2 Suspicious Classified as a possible threat but not identified as a specific threat.
3 Failed To Scan Scanning is not fully performed (e.g., invalid file or no read permission).
4 Cleaned Not Applicable.
5 Unknown Scan result does not exist (only for hash lookups).
6 Quarantined Not Applicable.
[..]
The text was updated successfully, but these errors were encountered: