summaryrefslogtreecommitdiff
path: root/icktool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-25 19:30:33 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-25 19:30:33 +0300
commite8efa3337d3f99e73112f223997237ffa19b6345 (patch)
treebafc4af8a01da2a06ee57a0a41f352ee2957362a /icktool
parente53feb20491637cc8c6a018ffa554dffb26ab22d (diff)
downloadick2-e8efa3337d3f99e73112f223997237ffa19b6345.tar.gz
Add: icktool delete
Diffstat (limited to 'icktool')
-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):