MCPcopy Create free account
hub / github.com/opencloud-eu/opencloud / BackupCommand

Function BackupCommand

opencloud/pkg/command/backup.go:19–29  ·  view source on GitHub ↗

BackupCommand is the entrypoint for the backup command

(cfg *config.Config)

Source from the content-addressed store, hash-verified

17
18// BackupCommand is the entrypoint for the backup command
19func BackupCommand(cfg *config.Config) *cobra.Command {
20 bckCmd := &cobra.Command{
21 Use: "backup",
22 Short: "OpenCloud backup functionality",
23 PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
24 return configlog.ReturnError(parser.ParseConfig(cfg, true))
25 },
26 }
27 bckCmd.AddCommand(ConsistencyCommand(cfg))
28 return bckCmd
29}
30
31// ConsistencyCommand is the entrypoint for the consistency Command
32func ConsistencyCommand(cfg *config.Config) *cobra.Command {

Callers

nothing calls this directly

Calls 3

ReturnErrorFunction · 0.92
ParseConfigFunction · 0.92
ConsistencyCommandFunction · 0.85

Tested by

no test coverage detected