stred

Stred: Streaming Tree Editor. Like sed but for JSON
git clone http://shtanton.xyz/git/repo/stred
Log | Files | Refs

commit 773c5e115fbb4e8b432e95e02216af9b23415ca8
parent 3fe10dc8f2d00287b10e9689449764dfb3eba3af
Author: Charlie Stanton <charlie@shtanton.xyz>
Date:   Wed, 19 Apr 2023 17:05:27 +0100

Adds the noop command 'o'

Diffstat:
Mmain/parse.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/main/parse.go b/main/parse.go @@ -249,6 +249,8 @@ func (p *parser) parseBasicCommand(commandChar rune) Command { case 'i': items := p.parseLiterals() return PrintLiteralsCommand {items: items} + case 'o': + return NoopCommand{} default: panic("Invalid command") }