MCPcopy
hub / github.com/cli/cli / NewCmdCache

Function NewCmdCache

pkg/cmd/cache/cache.go:11–29  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

9)
10
11func 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}

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected