(f *cmdutil.Factory)
| 12 | ) |
| 13 | |
| 14 | func 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 | } |
nothing calls this directly
no test coverage detected