github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/cmd/syft/internal/options/attest.go (about)

     1  package options
     2  
     3  import (
     4  	"github.com/anchore/clio"
     5  )
     6  
     7  var _ clio.FlagAdder = (*Attest)(nil)
     8  
     9  type Attest struct {
    10  	// IMPORTANT: do not show the attestation key/password in any YAML/JSON output (sensitive information)
    11  	Key      secret `yaml:"key" json:"key" mapstructure:"key"`
    12  	Password secret `yaml:"password" json:"password" mapstructure:"password"`
    13  }
    14  
    15  var _ clio.FlagAdder = (*Attest)(nil)
    16  
    17  func (o *Attest) AddFlags(flags clio.FlagSet) {
    18  	flags.StringVarP((*string)(&o.Key), "key", "k", "the key to use for the attestation")
    19  }