summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-16 16:38:07 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-16 16:38:07 +0300
commit47425ac9087ea082d18df16ae8a0b39b89e6f8fd (patch)
treec2ba78566102e651bcf12e4b07203cb897fdde00
parent52212ff997f00ab90491d6514c8bd029134d77ea (diff)
downloadqvisqve-47425ac9087ea082d18df16ae8a0b39b89e6f8fd.tar.gz
Add: delete command
-rwxr-xr-xqvisqvetool6
1 files changed, 6 insertions, 0 deletions
diff --git a/qvisqvetool b/qvisqvetool
index da5aab0..23af698 100755
--- a/qvisqvetool
+++ b/qvisqvetool
@@ -135,6 +135,12 @@ class QvisqveTool(cliapp.Application):
entity_path = '{}/{}'.format(path, name)
self.output.write('Created {} {}\n'.format(kind, name))
+ def cmd_delete(self, args):
+ kind = args[0]
+ for name in args[1:]:
+ path = '{}/{}'.format(paths[kind], name)
+ self.cmd_DELETE([path])
+
def cmd_set_secret(self, args):
kind, name, secret = args