Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent 18e3bba commit 5f562ae
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
@@ -80,16 +80,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 5f562ae

Please sign in to comment.