-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
v1@yamgent submitted v1 for review.
Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/785/1/head:BRANCHNAME where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[8/11]
assertTrue(parser.parseCommand(HistoryCommand.COMMAND_ALIAS + " 3") instanceof HistoryCommand); | ||
|
||
try { | ||
parser.parseCommand("histories"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test is unnecessary cos it's the exact same thing in the above test :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[11/11] Missing update for select.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor nits! I'll just approve first; after this can tag prof for review ^^
docs/UserGuide.adoc
Outdated
@@ -46,6 +46,7 @@ e.g. typing *`help`* and pressing kbd:[Enter] will open the help window. | |||
==== | |||
*Command Format* | |||
|
|||
* Some commands may have an alias, which you can also use to execute the command e.g. for `add`, its alias is `a`, so you can either type `add n/John Doe` or `a n/John Doe`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Some commands
mayhave an alias e.g. fore.g. to add a person to the address book, you can type eitheradd
, its alias isa
, so you can either typeadd n/John Doe
ora n/John Doe
.add n/John Doe
ora n/John Doe
.
0d8443a
to
2cb223c
Compare
v2@yamgent submitted v2 for review.
(📚 Archive) (📈 Interdiff between v1 and v2) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/785/2/head:BRANCHNAME where |
@Zhiyuan-Amos thanks for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the PR @yamgent
Oh @yamgent, have to update DG to link to this PR instead of the older PR. |
In order to invoke AddCommand, the user has to type "add ...". As the command is commonly used, typing the full command word "add" can be troublesome. Let's teach AddressBookParser to accept the alias "a" as another way of invoking the AddCommand.
2cb223c
to
720567b
Compare
In order to invoke EditCommand, the user has to type "edit ...". As the command is commonly used, typing the full command word "edit" can be troublesome. Let's teach AddressBookParser to accept the alias "e" as another way of invoking the EditCommand.
In order to invoke SelectCommand, the user has to type "select ...". As the command is commonly used, typing the full command word "select" can be troublesome. Let's teach AddressBookParser to accept the alias "s" as another way of invoking the SelectCommand.
In order to invoke DeleteCommand, the user has to type "delete ...". As the command is commonly used, typing the full command word "delete" can be troublesome. Let's teach AddressBookParser to accept the alias "d" as another way of invoking the DeleteCommand.
In order to invoke ClearCommand, the user has to type "clear". As the command is commonly used, typing the full command word "clear" can be troublesome. Let's teach AddressBookParser to accept the alias "c" as another way of invoking the ClearCommand.
In order to invoke FindCommand, the user has to type "find ...". As the command is commonly used, typing the full command word "find" can be troublesome. Let's teach AddressBookParser to accept the alias "f" as another way of invoking the FindCommand.
In order to invoke ListCommand, the user has to type "list". As the command is commonly used, typing the full command word "list" can be troublesome. Let's teach AddressBookParser to accept the alias "l" as another way of invoking the ListCommand.
In order to invoke HistoryCommand, the user has to type "history". As the command is commonly used, typing the full command word "history" can be troublesome. Let's teach AddressBookParser to accept the alias "h" as another way of invoking the HistoryCommand.
In order to invoke UndoCommand, the user has to type "undo". As the command is commonly used, typing the full command word "undo" can be troublesome. Let's teach AddressBookParser to accept the alias "u" as another way of invoking the UndoCommand.
In order to invoke RedoCommand, the user has to type "redo". As the command is commonly used, typing the full command word "redo" can be troublesome. Let's teach AddressBookParser to accept the alias "r" as another way of invoking the RedoCommand.
720567b
to
79a313f
Compare
v3@yamgent submitted v3 for review.
(📚 Archive) (📈 Interdiff between v2 and v3) (📈 Range-Diff between v2 and v3) Checkout this PR version locallygit fetch https://github.com/se-edu/addressbook-level4.git refs/pr/785/3/head:BRANCHNAME where |
Changelog:
|
Part of #784. Rebased, and also added tests + docs.
Proposed commit message:
Note: This PR is used as an example for future developers. Do not merge!