mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
Replace packages command with scan (#2446)
* replace packages command with scan Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests for packages alias Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update comments with referenes to the packages command Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename valiadte args function Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ func Detect(userInput string, cfg DetectConfig) (*Detection, error) {
|
||||
|
||||
if src == image.UnknownSource {
|
||||
// only run for these two schemes
|
||||
// only check on packages command, attest we automatically try to pull from userInput
|
||||
// only check on scan command, attest we automatically try to pull from userInput
|
||||
switch ty {
|
||||
case containerImageType, unknownType:
|
||||
ty = containerImageType
|
||||
|
||||
Reference in New Issue
Block a user