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() {
16
16
}
17
17
18
18
_notes_complete_commands () {
19
- local valid_commands=" new find grep open"
19
+ local valid_commands=" new find grep open ls rm "
20
20
COMPREPLY=($( compgen -W " ${valid_commands} " -- " ${1} " ) )
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -17,10 +17,12 @@ teardown() {
17
17
@test " Should list all commands" {
18
18
touch $NOTES_DIRECTORY /note1.md
19
19
_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[@]} "
24
26
}
25
27
26
28
@test " Should show matching note when found" {
You can’t perform that action at this time.
0 commit comments