RevisionsCommand is the entrypoint for the revisions command.
(cfg *config.Config)
| 27 | |
| 28 | // RevisionsCommand is the entrypoint for the revisions command. |
| 29 | func 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. |
| 43 | func PurgeRevisionsCommand(cfg *config.Config) *cobra.Command { |
nothing calls this directly
no test coverage detected