BackupCommand is the entrypoint for the backup command
(cfg *config.Config)
| 17 | |
| 18 | // BackupCommand is the entrypoint for the backup command |
| 19 | func 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 |
| 32 | func ConsistencyCommand(cfg *config.Config) *cobra.Command { |
nothing calls this directly
no test coverage detected