Skip to content

Commit 002f622

Browse files
authored
feat: allow passing kind and name at the same time (chainloop-dev#1841)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 7740fbc commit 002f622

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/cli/cmd/attestation_add.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ func newAttestationAddCmd() *cobra.Command {
5959
6060
# Add a material to the attestation without specifying neither kind nor name enables automatic detection
6161
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-
},
6962
RunE: func(cmd *cobra.Command, _ []string) error {
7063
a, err := action.NewAttestationAdd(
7164
&action.AttestationAddOpts{

0 commit comments

Comments
 (0)