File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ _notes_complete_notes() {
1616}
1717
1818_notes_complete_commands () {
19- local valid_commands=" new find grep open"
19+ local valid_commands=" new find grep open ls rm "
2020 COMPREPLY=($( compgen -W " ${valid_commands} " -- " ${1} " ) )
2121}
2222
Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ teardown() {
1717@test " Should list all commands" {
1818 touch $NOTES_DIRECTORY /note1.md
1919 _notes_complete_commands " "
20- assert_contains " new" ${COMPREPLY[@]}
21- assert_contains " find" ${COMPREPLY[@]}
22- assert_contains " grep" ${COMPREPLY[@]}
23- assert_contains " open" ${COMPREPLY[@]}
20+ assert_contains " new" " ${COMPREPLY[@]} "
21+ assert_contains " find" " ${COMPREPLY[@]} "
22+ assert_contains " grep" " ${COMPREPLY[@]} "
23+ assert_contains " open" " ${COMPREPLY[@]} "
24+ assert_contains " ls" " ${COMPREPLY[@]} "
25+ assert_contains " rm" " ${COMPREPLY[@]} "
2426}
2527
2628@test " Should show matching note when found" {
You can’t perform that action at this time.
0 commit comments