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

[PawanPatil19] iP #175

Open
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

PawanPatil19
Copy link

@PawanPatil19 PawanPatil19 commented Jan 24, 2023

Extension : Mass Operations 🔥

Perform operations of multiple tasks in single command

Commands for MassOps

  • delete
  • mark
  • unmark

Syntax

  1. delete 1, 2, 3
  2. mark 5, 6
  3. unmark 1, 7, 2

You can check the code here.

Code Implementation

  • Split and trim the input using ','
  • Sort the String array
  • Convert each element to integer
public class Main {
    public static void main(String[] args) {
        Application.launch(MainApp.class, args);
    }
}

PawanPatil19 and others added 30 commits February 13, 2023 03:05
Added feature to handle mass operations

Duke accepted only single arguments in it commands initially, so changes
were supposed to be made for Duke to take multiple arguments to ease
the functionality of the chat bot.

Modification in the methods to delete, mark and unmarks were necessary 
for the commands to accept multiple arguments.

The input arguments are taken, as per initial commits but the arguments
are separated using regex splitting and passed over to task related
methods.
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