-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds syft integration for automated component metadata collection
Closes #113 Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,521 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package commands | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/emporous/emporous-go/cmd/client/commands/options" | ||
) | ||
|
||
// CreateOptions describe configuration options that can | ||
// be set using the create subcommand. | ||
type CreateOptions struct { | ||
*options.Common | ||
options.Remote | ||
options.RemoteAuth | ||
} | ||
|
||
// NewCreateCmd creates a new cobra.Command for the create subcommand. | ||
func NewCreateCmd(common *options.Common) *cobra.Command { | ||
o := CreateOptions{Common: common} | ||
|
||
cmd := &cobra.Command{ | ||
Use: "create", | ||
Short: "Create artifacts from existing OCI artifacts", | ||
SilenceErrors: false, | ||
SilenceUsage: false, | ||
RunE: func(cmd *cobra.Command, _ []string) error { | ||
return cmd.Help() | ||
}, | ||
} | ||
|
||
o.Remote.BindFlags(cmd.PersistentFlags()) | ||
o.RemoteAuth.BindFlags(cmd.PersistentFlags()) | ||
|
||
cmd.AddCommand(NewInventoryCmd(&o)) | ||
|
||
return cmd | ||
} |
Oops, something went wrong.