diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-20 14:48:50 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-20 14:48:50 +0100 |
commit | 79ac135cee306cbcfa4b73f1b7c0b404712fee7b (patch) | |
tree | e3a4d7d69bf8c044827914dbc05a4a473878559b /main/parse.go | |
parent | 46720adb713a931447f4d899729b83b6171138db (diff) | |
download | stred-go-79ac135cee306cbcfa4b73f1b7c0b404712fee7b.tar |
Replaces the inflexible delete all with separate DeleteValue and DeletePath commands
Diffstat (limited to 'main/parse.go')
-rw-r--r-- | main/parse.go | 4 |
1 files changed, 3 insertions, 1 deletions
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': |