We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7740fbc commit 002f622Copy full SHA for 002f622
app/cli/cmd/attestation_add.go
@@ -59,13 +59,6 @@ func newAttestationAddCmd() *cobra.Command {
59
60
# Add a material to the attestation without specifying neither kind nor name enables automatic detection
61
chainloop attestation add --value <material-value>`,
62
- PreRunE: func(cmd *cobra.Command, args []string) error {
63
- if name != "" && kind != "" {
64
- return fmt.Errorf("both --name and --kind cannot be set at the same time")
65
- }
66
-
67
- return nil
68
- },
69
RunE: func(cmd *cobra.Command, _ []string) error {
70
a, err := action.NewAttestationAdd(
71
&action.AttestationAddOpts{
0 commit comments