diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-25 19:30:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-25 19:30:33 +0300 |
commit | e8efa3337d3f99e73112f223997237ffa19b6345 (patch) | |
tree | bafc4af8a01da2a06ee57a0a41f352ee2957362a | |
parent | e53feb20491637cc8c6a018ffa554dffb26ab22d (diff) | |
download | ick2-e8efa3337d3f99e73112f223997237ffa19b6345.tar.gz |
Add: icktool delete
-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): |