MCPcopy
hub / github.com/cli/cli / NewCmdAttestation

Function NewCmdAttestation

pkg/cmd/attestation/attestation.go:14–30  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

12)
13
14func NewCmdAttestation(f *cmdutil.Factory) *cobra.Command {
15 root := &cobra.Command{
16 Use: "attestation [subcommand]",
17 Short: "Work with artifact attestations",
18 Aliases: []string{"at"},
19 Long: heredoc.Doc(`
20 Download and verify artifact attestations.
21 `),
22 }
23
24 root.AddCommand(download.NewDownloadCmd(f, nil))
25 root.AddCommand(inspect.NewInspectCmd(f, nil))
26 root.AddCommand(verify.NewVerifyCmd(f, nil))
27 root.AddCommand(trustedroot.NewTrustedRootCmd(f, nil))
28
29 return root
30}

Callers

nothing calls this directly

Calls 4

NewDownloadCmdFunction · 0.92
NewInspectCmdFunction · 0.92
NewVerifyCmdFunction · 0.92
NewTrustedRootCmdFunction · 0.92

Tested by

no test coverage detected