package seedu.taskitty.logic.commands;

import java.util.Set;

/**
 * Finds and lists all tasks in task manager whose name contains any of the argument keywords.
 * Keyword matching is case sensitive.
 */
public class ViewDoneCommand extends Command {

    public static final String COMMAND_WORD = "viewdone";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": view all previously marked as done tasks. "
            + "Example: " + COMMAND_WORD;


    public ViewDoneCommand() {
    }

    @Override
    public CommandResult execute() {

        model.updateFilteredDoneList();
        return new CommandResult(getMessageForTaskListShownSummary(model.getTaskList().size()));
    }

    @Override
    public void saveStateIfNeeded() {
        model.saveState();
    }

}

@@ -740,16 +740,34 @@
 fNeeded(
+String commandText
 ) %7B%0A    
@@ -786,16 +786,27 @@
 veState(
+commandText
 );%0A    %7D

Update saveStateIsNeeded parameters in viewDoneCommand