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
@@ -37,6 +37,10 @@ func (c *commandEcDecode) Help() string {
`
}
func (c *commandEcDecode) IsResourceHeavy() bool {
return false
}
func (c *commandEcDecode) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
decodeCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
volumeId := decodeCommand.Int("volumeId", 0, "the volume id")