MCPcopy Index your code
hub / github.com/opencloud-eu/opencloud / RevisionsCommand

Function RevisionsCommand

opencloud/pkg/command/revisions.go:29–40  ·  view source on GitHub ↗

RevisionsCommand is the entrypoint for the revisions command.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

27
28// RevisionsCommand is the entrypoint for the revisions command.
29func RevisionsCommand(cfg *config.Config) *cobra.Command {
30 revCmd := &cobra.Command{
31 Use: "revisions",
32 Short: "OpenCloud revisions functionality",
33 PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
34 return configlog.ReturnError(parser.ParseConfig(cfg, true))
35 },
36 }
37 revCmd.AddCommand(PurgeRevisionsCommand(cfg))
38
39 return revCmd
40}
41
42// PurgeRevisionsCommand allows removing all revisions from a storage provider.
43func PurgeRevisionsCommand(cfg *config.Config) *cobra.Command {

Callers

nothing calls this directly

Calls 3

ReturnErrorFunction · 0.92
ParseConfigFunction · 0.92
PurgeRevisionsCommandFunction · 0.85

Tested by

no test coverage detected