mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +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:
@@ -69,8 +69,8 @@ func TestPersistentFlags(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "quiet-flag",
|
||||
// note: the root command will always show the deprecation warning, so the packages command is used instead
|
||||
args: []string{"packages", "-q", request},
|
||||
// note: the root command will always show the deprecation warning, so the scan command is used instead
|
||||
args: []string{"scan", "-q", request},
|
||||
assertions: []traitAssertion{
|
||||
func(tb testing.TB, stdout, stderr string, rc int) {
|
||||
// ensure there is no status
|
||||
|
||||
Reference in New Issue
Block a user