mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 14:36:33 +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:
@@ -29,14 +29,14 @@ func TestSPDXJSONSchema(t *testing.T) {
|
||||
fixture func(*testing.T) string
|
||||
}{
|
||||
{
|
||||
name: "packages:image:docker-archive:pkg-coverage",
|
||||
subcommand: "packages",
|
||||
name: "scan:image:docker-archive:pkg-coverage",
|
||||
subcommand: "scan",
|
||||
args: []string{"-o", "spdx-json"},
|
||||
fixture: imageFixture,
|
||||
},
|
||||
{
|
||||
name: "packages:dir:pkg-coverage",
|
||||
subcommand: "packages",
|
||||
name: "scan:dir:pkg-coverage",
|
||||
subcommand: "scan",
|
||||
args: []string{"-o", "spdx-json"},
|
||||
fixture: func(t *testing.T) string {
|
||||
return "dir:test-fixtures/image-pkg-coverage"
|
||||
|
||||
Reference in New Issue
Block a user