Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person -p flag for deleting #187

Merged

Conversation

hellodommy
Copy link

This will enable @jeunhoe and I to use delete -t and delete -e flags to delete Training and Event respectively, as the delete command will no longer be reserved for deleting a person.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 240

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.03%) to 55.912%

Files with Coverage Reduction New Missed Lines %
file:/home/travis/build/AY1920S1-CS2103T-T12-3/main/src/main/java/seedu/address/logic/commands/DeleteCommand.java 1 66.67%
file:/home/travis/build/AY1920S1-CS2103T-T12-3/main/src/main/java/seedu/address/logic/parser/DeleteCommandParser.java 5 70.59%
Totals Coverage Status
Change from base Build 237: 0.03%
Covered Lines: 1499
Relevant Lines: 2681

💛 - Coveralls

Copy link

@jeunhoe jeunhoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great use of abstraction!

*/
public class DeleteCommand extends Command {
public abstract class DeleteCommand extends Command {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! 😯Great idea 💡making this an abstract class! I 🙋‍♂️ personally wouldn't have thought 💭 of it myself! This will make implementing the delete training command a lot easier!

* A flag that marks the beginning of a type that the command is applied to.
* E.g. '-p' in 'delete -p 1'.
*/
public class Flag {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great abstraction of the flag class. Will be useful for my training command as well.

@jeunhoe jeunhoe merged commit c6a72a3 into AY1920S1-CS2103T-T12-3:master Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants