Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roxctl/maincommand/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/stackrox/rox/roxctl/image"
"github.com/stackrox/rox/roxctl/logconvert"
"github.com/stackrox/rox/roxctl/netpol"
"github.com/stackrox/rox/roxctl/sbom"
"github.com/stackrox/rox/roxctl/scanner"
"github.com/stackrox/rox/roxctl/sensor"
)
Expand Down Expand Up @@ -80,6 +81,7 @@ func Command() *cobra.Command {
deployment.Command(cliEnvironment),
logconvert.Command(cliEnvironment),
image.Command(cliEnvironment),
sbom.Command(cliEnvironment),
scanner.Command(cliEnvironment),
sensor.Command(cliEnvironment),
helm.Command(cliEnvironment),
Expand Down
47 changes: 47 additions & 0 deletions roxctl/maincommand/command_tree_debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,53 @@ netpol:
- server-name
- token-file
- use-current-k8s-context
sbom:
PERSISTENT_FLAGS:
- timeout
INHERITED_FLAGS:
- ca
- direct-grpc
- endpoint
- force-http1
- help
- insecure
- insecure-skip-tls-verify
- no-color
- password
- plaintext
- server-name
- token-file
- use-current-k8s-context
scan:
LOCAL_FLAGS:
- content-type
- fail
- file
- severity
PERSISTENT_FLAGS:
- compact-output
- headers
- headers-as-comments
- merge-output
- no-header
- output
- required-headers
- row-jsonpath-expressions
INHERITED_FLAGS:
- ca
- direct-grpc
- endpoint
- force-http1
- help
- insecure
- insecure-skip-tls-verify
- no-color
- password
- plaintext
- server-name
- timeout
- token-file
- use-current-k8s-context
scanner:
INHERITED_FLAGS:
- ca
Expand Down
47 changes: 47 additions & 0 deletions roxctl/maincommand/command_tree_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,53 @@ netpol:
- server-name
- token-file
- use-current-k8s-context
sbom:
PERSISTENT_FLAGS:
- timeout
INHERITED_FLAGS:
- ca
- direct-grpc
- endpoint
- force-http1
- help
- insecure
- insecure-skip-tls-verify
- no-color
- password
- plaintext
- server-name
- token-file
- use-current-k8s-context
scan:
LOCAL_FLAGS:
- content-type
- fail
- file
- severity
PERSISTENT_FLAGS:
- compact-output
- headers
- headers-as-comments
- merge-output
- no-header
- output
- required-headers
- row-jsonpath-expressions
INHERITED_FLAGS:
- ca
- direct-grpc
- endpoint
- force-http1
- help
- insecure
- insecure-skip-tls-verify
- no-color
- password
- plaintext
- server-name
- timeout
- token-file
- use-current-k8s-context
scanner:
INHERITED_FLAGS:
- ca
Expand Down
23 changes: 23 additions & 0 deletions roxctl/sbom/sbom.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package sbom

import (
"time"

"github.com/spf13/cobra"
"github.com/stackrox/rox/roxctl/common/environment"
"github.com/stackrox/rox/roxctl/common/flags"
"github.com/stackrox/rox/roxctl/sbom/scan"
)

// Command defines the sbom command tree.
func Command(cliEnvironment environment.Environment) *cobra.Command {
c := &cobra.Command{
Use: "sbom",
Short: "Commands that you can run on SBOMs",
}

c.AddCommand(scan.Command(cliEnvironment))

flags.AddTimeoutWithDefault(c, 5*time.Minute)
return c
}
Loading
Loading