summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xicktool11
1 files changed, 11 insertions, 0 deletions
diff --git a/icktool b/icktool
index ade9858..2fcdf04 100755
--- a/icktool
+++ b/icktool
@@ -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):