add IsResourceHeavy() to command interface

This commit is contained in:
chrislu committed 2024-09-28 20:23:01 -07:00
1 parent dad3a26fb6
commit 701abbb9df
73 files changed
+295 -2

No files matched your search

+4
View File
@@ -34,6 +34,10 @@ func (c *commandS3CleanUploads) Help() string {
`
}
func (c *commandS3CleanUploads) IsResourceHeavy() bool {
return false
}
func (c *commandS3CleanUploads) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
bucketCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
uploadedTimeAgo := bucketCommand.Duration("timeAgo", 24*time.Hour, "created time before now. \"1.5h\" or \"2h45m\". Valid time units are \"m\", \"h\"")