add IsResourceHeavy() to command interface

This commit is contained in:
chrislu
2024-09-28 20:22:57 -07:00
parent dad3a26fb6
commit 701abbb9df
73 changed files with 295 additions and 2 deletions

View File

@@ -27,6 +27,10 @@ func (c *commandFsLogPurge) Help() string {
`
}
func (c *commandFsLogPurge) IsResourceHeavy() bool {
return false
}
func (c *commandFsLogPurge) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
fsLogPurgeCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
daysAgo := fsLogPurgeCommand.Uint("daysAgo", 365, "purge logs older than N days")