github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/cli/command/trust.go (about) 1 package command 2 3 import ( 4 "github.com/spf13/pflag" 5 ) 6 7 // AddTrustVerificationFlags adds content trust flags to the provided flagset 8 func AddTrustVerificationFlags(fs *pflag.FlagSet, v *bool, trusted bool) { 9 fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image verification") 10 } 11 12 // AddTrustSigningFlags adds "signing" flags to the provided flagset 13 func AddTrustSigningFlags(fs *pflag.FlagSet, v *bool, trusted bool) { 14 fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image signing") 15 }