package tars.logic.commands;

/**
 * Represents the result of a command execution.
 */
public class CommandResult {

    public final String feedbackToUser;

    public CommandResult(String feedbackToUser) {
        assert feedbackToUser != null;
        this.feedbackToUser = feedbackToUser;
    }

}

@@ -23,16 +23,83 @@
 mands;%0A%0A
+import java.util.ArrayList;%0A%0Aimport tars.model.task.ReadOnlyTask;%0A%0A
 /**%0A * R
@@ -358,12 +358,336 @@
 r;%0A    %7D
+%0A    %0A    /**%0A     * Formats an ArrayList of tasks to return it as a string%0A     */%0A    public static String formatTasksList(ArrayList%3CReadOnlyTask%3E taskList) %7B%0A        String toReturn = %22%22;%0A        for (ReadOnlyTask t : taskList) %7B%0A            toReturn += t.toString() +%22%5Cn%22;%0A        %7D%0A        return toReturn.trim();%0A    %7D
 %0A%0A%7D%0A

Add method to format lists of tasks for commandResult