it was only used internally in a single location, so inline the
code where it's used.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 8c22927978)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
287 B
Go
11 lines
287 B
Go
package command
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
)
|
|
|
|
// AddTrustVerificationFlags adds content trust flags to the provided flagset
|
|
func AddTrustVerificationFlags(fs *pflag.FlagSet, v *bool, trusted bool) {
|
|
fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image verification")
|
|
}
|