(use string, message string)
| 1215 | } |
| 1216 | |
| 1217 | func newMemoryDailyRetentionCommand(use string, message string) *cobra.Command { |
| 1218 | var olderThan string |
| 1219 | var dryRun bool |
| 1220 | cmd := newUnsupportedMemoryCommand(use, message, cobra.NoArgs) |
| 1221 | cmd.Flags().StringVar(&olderThan, "older-than", "", "Retention age threshold") |
| 1222 | cmd.Flags().BoolVar(&dryRun, "dry-run", false, "Show retention work without applying it") |
| 1223 | return cmd |
| 1224 | } |
| 1225 | |
| 1226 | func newUnsupportedMemoryCommand(use string, message string, args cobra.PositionalArgs) *cobra.Command { |
| 1227 | return &cobra.Command{ |
no test coverage detected