Skip to content

Commit

Permalink
add the destroy command
Browse files Browse the repository at this point in the history
  • Loading branch information
GideonBature committed Oct 15, 2023
1 parent e52f7db commit ddac415
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddac415

Please sign in to comment.