diff options
Diffstat (limited to 'icktool')
-rwxr-xr-x | icktool | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -135,6 +135,10 @@ class Icktool(cliapp.Application): cmd = self._command(ShowCommand) cmd.execute(args) + def cmd_delete(self, args): + cmd = self._command(DeleteCommand) + cmd.execute(args) + def cmd_show_log(self, args): cmd = self._command(ShowLogCommand) cmd.execute(args) @@ -432,6 +436,13 @@ class ShowCommand(Command): self._prettyson(objs) +class DeleteCommand(Command): + + def execute(self, args): + for what in args: + self.api.delete(what) + + class ShowLogCommand(Command): def execute(self, args): |