-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- pack download-sbom -> pack sbom download .... - Add warning message for pack inspect-image <> --bom - Remove --local flag - Add -o shorthand for --output-dir flag Signed-off-by: Anthony Emengo <aemengo@vmware.com>
- Loading branch information
Anthony Emengo
committed
Feb 2, 2022
1 parent
e638b02
commit 7db1ac5
Showing
5 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package commands | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/buildpacks/pack/internal/config" | ||
"github.com/buildpacks/pack/pkg/logging" | ||
) | ||
|
||
func NewSBOMCommand(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "sbom", | ||
Short: "Interact with SBoM", | ||
RunE: nil, | ||
} | ||
|
||
cmd.AddCommand(DownloadSBOM(logger, client)) | ||
AddHelpFlag(cmd, "sbom") | ||
return cmd | ||
} |