cli/pkg/cmd/attestation/inspect/options.go
Meredith Lancaster af75fe875c remove quiet and verbose flags
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-14 22:42:21 -06:00

23 lines
513 B
Go

package inspect
import (
"path/filepath"
"github.com/cli/cli/v2/pkg/cmd/attestation/artifact/oci"
"github.com/cli/cli/v2/pkg/cmd/attestation/io"
)
// Options captures the options for the inspect command
type Options struct {
ArtifactPath string
BundlePath string
DigestAlgorithm string
JsonResult bool
Logger *io.Handler
OCIClient oci.Client
}
// Clean cleans the file path option values
func (opts *Options) Clean() {
opts.BundlePath = filepath.Clean(opts.BundlePath)
}