Skip to content

Commit

Permalink
fix(parser): add missing from command list
Browse files Browse the repository at this point in the history
  • Loading branch information
helmecke committed Oct 8, 2023
1 parent 2e1ffa9 commit 00b0f69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func (p *Parser) ParseArgs(args []string) (err error) {

func isFilterCommand(cmd string) bool {
filterCommands := []string{
"add",
"complete",
"delete",
"list",
Expand Down
1 change: 1 addition & 0 deletions internal/parser/parser_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 00b0f69

Please sign in to comment.