From ddac415ffcecaeb690c550678914453dce5577c9 Mon Sep 17 00:00:00 2001 From: Gideon Bature Date: Mon, 16 Oct 2023 00:52:04 +0100 Subject: [PATCH] add the destroy command --- console.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console.py b/console.py index 32d3c86..47c3d9a 100755 --- a/console.py +++ b/console.py @@ -270,6 +270,9 @@ def default(self, line): elif cls_cmd.startswith("show"): _id = cls_cmd.split('"')[1] self.do_show(f"{cls_name} {_id}") + elif cls_cmd.startswith("destroy"): + _id = cls_cmd.split('"')[1] + self.do_destroy(f"{cls_name} {_id}") def postcmd(self, stop, line): """Program exit cleanly in response to the quit command