package seedu.taskell.logic.commands;

import java.util.Set;

/**
<<<<<<< HEAD
 * Finds and lists all tasks in task manager whose description and tags contains any of the argument keywords.
 * Keyword matching is not case sensitive.
=======
 * Finds and lists all tasks in task manager whose name contains any of the argument keywords.
 * Keyword matching is case sensitive.
>>>>>>> master
 */
public class FindCommand extends Command {

    public static final String COMMAND_WORD = "find";

    public static final String MESSAGE_USAGE = COMMAND_WORD 
            + ": Finds all tasks which description and tags contain any of "
            + "the specified keywords and displays them as a list with index numbers.\n"
            + "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
            + "Example: " + COMMAND_WORD + " chicken bananas";

    private final Set<String> keywords;

    public FindCommand(Set<String> keywords) {
        this.keywords = keywords;
    }

    @Override
    public CommandResult execute() {
        model.updateFilteredTaskList(keywords);
        return new CommandResult(getMessageForTaskListShownSummary(model.getFilteredTaskList().size()));
    }

}

@@ -63,21 +63,8 @@
 /**%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
  * F
@@ -217,165 +217,8 @@
 ve.%0A
-=======%0A * Finds and lists all tasks in task manager whose name contains any of the argument keywords.%0A * Keyword matching is case sensitive.%0A%3E%3E%3E%3E%3E%3E%3E master%0A
  */%0A

resolve merge conflict on comments in find command