MCPcopy
hub / github.com/helmfile/helmfile / NewCacheCmd

Function NewCacheCmd

cmd/cache.go:54–69  ·  view source on GitHub ↗

NewCacheCmd returns cache subcmd

(globalCfg *config.GlobalImpl)

Source from the content-addressed store, hash-verified

52
53// NewCacheCmd returns cache subcmd
54func NewCacheCmd(globalCfg *config.GlobalImpl) *cobra.Command {
55 cacheOptions := config.NewCacheOptions()
56 cacheImpl := config.NewCacheImpl(globalCfg, cacheOptions)
57
58 cmd := &cobra.Command{
59 Use: "cache",
60 Short: "Cache management",
61 }
62
63 cmd.AddCommand(
64 NewCacheCleanupSubcommand(cacheImpl),
65 NewCacheInfoSubcommand(cacheImpl),
66 )
67
68 return cmd
69}

Callers 1

NewRootCmdFunction · 0.85

Calls 4

NewCacheOptionsFunction · 0.92
NewCacheImplFunction · 0.92
NewCacheInfoSubcommandFunction · 0.85

Tested by

no test coverage detected