retention: Refactor and add support of versioning (#3347)

This commit is contained in:
Anis Elleuch
2020-09-06 10:33:15 -07:00
committed by GitHub
parent 7f550f9482
commit af6cff00a5
13 changed files with 1058 additions and 393 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ var (
Usage: "remove objects newer than L days, M hours and N minutes",
},
cli.BoolFlag{
Name: bypass,
Name: "bypass",
Usage: "bypass governance",
},
}
@@ -436,7 +436,7 @@ func mainRm(cliCtx *cli.Context) error {
isRecursive := cliCtx.Bool("recursive")
isFake := cliCtx.Bool("fake")
isStdin := cliCtx.Bool("stdin")
isBypass := cliCtx.Bool(bypass)
isBypass := cliCtx.Bool("bypass")
olderThan := cliCtx.String("older-than")
newerThan := cliCtx.String("newer-than")
isForce := cliCtx.Bool("force")