From 79ac135cee306cbcfa4b73f1b7c0b404712fee7b Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Thu, 20 Apr 2023 14:48:50 +0100 Subject: Replaces the inflexible delete all with separate DeleteValue and DeletePath commands --- main/parse.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main/parse.go') diff --git a/main/parse.go b/main/parse.go index ab22d93..198b746 100644 --- a/main/parse.go +++ b/main/parse.go @@ -63,7 +63,9 @@ func (p *parser) parseBasicCommand(commandChar rune) Command { case 'p': return PrintValueCommand{} case 'd': - return DeleteAllCommand{} + return DeleteValueCommand{} + case 'D': + return DeletePathCommand{} case 'n': return NextCommand{} case 'N': -- cgit v1.2.3