From e8efa3337d3f99e73112f223997237ffa19b6345 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 Apr 2018 19:30:33 +0300 Subject: Add: icktool delete --- icktool | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'icktool') 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): -- cgit v1.2.1