Skip to content

Commit

Permalink
hide deprecated commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Feb 15, 2024
1 parent 5ca5e63 commit a0ac531
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/xraycommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func getXrayNameSpaceCommands() []components.Command {
// TODO: Deprecated commands (remove at next CLI major version)
{
Name: "scan",
Hidden: true,
Aliases: []string{"s"},
Flags: flags.GetCommandFlags(flags.XrScan),
Description: scanDocs.GetDescription(),
Expand All @@ -51,6 +52,7 @@ func getXrayNameSpaceCommands() []components.Command {
},
{
Name: "audit-mvn",
Hidden: true,
Aliases: []string{"am"},
Flags: flags.GetCommandFlags(flags.AuditMvn),
Description: auditSpecificDocs.GetMvnDescription(),
Expand All @@ -60,6 +62,7 @@ func getXrayNameSpaceCommands() []components.Command {
},
{
Name: "audit-gradle",
Hidden: true,
Aliases: []string{"ag"},
Flags: flags.GetCommandFlags(flags.AuditGradle),
Description: auditSpecificDocs.GetGradleDescription(),
Expand All @@ -69,6 +72,7 @@ func getXrayNameSpaceCommands() []components.Command {
},
{
Name: "audit-npm",
Hidden: true,
Aliases: []string{"an"},
Flags: flags.GetCommandFlags(flags.AuditNpm),
Description: auditSpecificDocs.GetNpmDescription(),
Expand All @@ -78,6 +82,7 @@ func getXrayNameSpaceCommands() []components.Command {
},
{
Name: "audit-go",
Hidden: true,
Aliases: []string{"ago"},
Flags: flags.GetCommandFlags(flags.AuditGo),
Description: auditSpecificDocs.GetGoDescription(),
Expand All @@ -87,6 +92,7 @@ func getXrayNameSpaceCommands() []components.Command {
},
{
Name: "audit-pip",
Hidden: true,
Aliases: []string{"ap"},
Flags: flags.GetCommandFlags(flags.AuditPip),
Description: auditSpecificDocs.GetPipDescription(),
Expand Down

0 comments on commit a0ac531

Please sign in to comment.