MCPcopy
hub / github.com/cli/cli / Clean

Method Clean

pkg/cmd/attestation/verify/options.go:50–54  ·  view source on GitHub ↗

Clean cleans the file path option values

()

Source from the content-addressed store, hash-verified

48
49// Clean cleans the file path option values
50func (opts *Options) Clean() {
51 if opts.BundlePath != "" {
52 opts.BundlePath = filepath.Clean(opts.BundlePath)
53 }
54}
55
56// FetchAttestationsFromGitHubAPI returns true if the command should fetch attestations from the GitHub API
57// It checks that a bundle path is not provided and that the "use bundle from registry" flag is not set

Callers 4

NewVerifyCmdFunction · 0.95
FindFunction · 0.45
NewCmdVerifyAssetFunction · 0.45
normalizeReferenceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected