Skip to content

Commit

Permalink
Kill unnecessary new shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 30, 2016
1 parent 307d3e5 commit a9f202c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions notes
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ usage() {
notes is a command line note taking tool.
Usage:
notes (new|n) <name> # Create a new note
notes new <name> # Create a new note
notes find [pattern] # Search notes by filename and path
notes grep <pattern> # Search notes by content
notes open # Open your notes directory
Expand All @@ -72,7 +72,7 @@ main() {
fi

case "$1" in
"n" | "new" )
"new" )
cmd="new_note"
;;
"find" )
Expand Down
7 changes: 0 additions & 7 deletions test/test-new.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ notes="./notes"
assert_exists "$NOTES_DIRECTORY/note.md"
}

@test "Should create a new note with the given name, using 'n' alias" {
run $notes n note

assert_success
assert_exists "$NOTES_DIRECTORY/note.md"
}

@test "Should create new notes within subfolders" {
run $notes new subfolder/note

Expand Down

0 comments on commit a9f202c

Please sign in to comment.