(f *cmdutil.Factory)
| 9 | ) |
| 10 | |
| 11 | func NewCmdCache(f *cmdutil.Factory) *cobra.Command { |
| 12 | cmd := &cobra.Command{ |
| 13 | Use: "cache <command>", |
| 14 | Short: "Manage GitHub Actions caches", |
| 15 | Long: "Work with GitHub Actions caches.", |
| 16 | Example: heredoc.Doc(` |
| 17 | $ gh cache list |
| 18 | $ gh cache delete --all |
| 19 | `), |
| 20 | GroupID: "actions", |
| 21 | } |
| 22 | |
| 23 | cmdutil.EnableRepoOverride(cmd, f) |
| 24 | |
| 25 | cmd.AddCommand(cmdList.NewCmdList(f, nil)) |
| 26 | cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil)) |
| 27 | |
| 28 | return cmd |
| 29 | } |
nothing calls this directly
no test coverage detected