From 00b0f698d0d111997874d02c9d0441c06a261dc9 Mon Sep 17 00:00:00 2001 From: helmecke Date: Sun, 8 Oct 2023 19:06:41 +0200 Subject: [PATCH] fix(parser): add missing from command list --- internal/parser/parser.go | 1 + internal/parser/parser_internal_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/parser/parser.go b/internal/parser/parser.go index 92eda23..98be61b 100644 --- a/internal/parser/parser.go +++ b/internal/parser/parser.go @@ -127,6 +127,7 @@ func (p *Parser) ParseArgs(args []string) (err error) { func isFilterCommand(cmd string) bool { filterCommands := []string{ + "add", "complete", "delete", "list", diff --git a/internal/parser/parser_internal_test.go b/internal/parser/parser_internal_test.go index fa4a801..3fb4469 100644 --- a/internal/parser/parser_internal_test.go +++ b/internal/parser/parser_internal_test.go @@ -15,6 +15,7 @@ func Test_isFilterCommand(t *testing.T) { want bool }{ {"false", args{cmd: "bla"}, false}, + {"add", args{cmd: "add"}, true}, {"complete", args{cmd: "complete"}, true}, {"delete", args{cmd: "delete"}, true}, {"list", args{cmd: "list"}, true},