Skip to content

Commit

Permalink
attach: Support shorthand flags for sign and attach
Browse files Browse the repository at this point in the history
Since signing and attaching now defaults to false, we add shorthand flags as
they will be typed a lot more.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
puerco committed Jan 17, 2023

Partially verified

This commit is signed with the committer’s verified signature.
spydon’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
1 parent e2867d8 commit 50bb97d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/cmd/attest.go
Original file line number Diff line number Diff line change
@@ -82,16 +82,18 @@ added to the attestation as subjects
},
}

generateCmd.PersistentFlags().BoolVar(
generateCmd.PersistentFlags().BoolVarP(
&opts.attach,
"attach",
"a",
false,
"attach the generated attestation to an image",
)

generateCmd.PersistentFlags().BoolVar(
generateCmd.PersistentFlags().BoolVarP(
&opts.sign,
"sign",
"s",
false,
"sign the attestation with sigstore",
)

0 comments on commit 50bb97d

Please sign in to comment.