package seedu.jimi.commons.core;

import seedu.jimi.commons.util.CommandUtil;

/**
 * Container for user visible messages.
 */
public class Messages {
    public static final String MESSAGE_ALL_AVAIL_CMD = 
            "> All available commands: " + CommandUtil.getInstance().commandsToString();
    public static final String MESSAGE_UNKNOWN_COMMAND = 
            "Unknown command - \"%1$s\" \n"
            + MESSAGE_ALL_AVAIL_CMD;
    public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
    public static final String MESSAGE_INVALID_TASK_DISPLAYED_INDEX = "The index provided is invalid.";
    public static final String MESSAGE_TASKS_LISTED_OVERVIEW = "%1$d task(s) listed!";
    public static final String MESSAGE_INVALID_DATE = 
            "Date and time are invalid!\n" 
            + "> Tip: try avoiding keywords like `on`, `to` and `due` in your dates and times.\n" 
            + "> You might confuse Jimi!";
    public static final String MESSAGE_START_END_CONSTRAINT = "Start date/time needs to be prior to end date/time!";
    public static final String MESSAGE_WELCOME_JIMI = 
            "Welcome to Jimi, the task manager for people like Jim. \n"
            + "\n"
            + "Let's get started! Try these commands out: \n"
            + MESSAGE_ALL_AVAIL_CMD + "\n"
            + "\n"
            + "To get help for a specific command, type 'help COMMAND_WORD' e.g. 'help add' \n"
            + "To get detailed help for all commands, type 'help' to visit our user guide.";
}

package seedu.jimi.commons.core;

import seedu.jimi.commons.util.CommandUtil;

/**
 * Container for user visible messages.
 */
public class Messages {
    public static final String MESSAGE_ALL_AVAIL_CMD = 
            "> All available commands: " + CommandUtil.getInstance().commandsToString();
    public static final String MESSAGE_UNKNOWN_COMMAND = 
            "Unknown command - \"%1$s\" \n"
            + MESSAGE_ALL_AVAIL_CMD;
    public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
    public static final String MESSAGE_INVALID_TASK_DISPLAYED_INDEX =
            "The index provided is invalid. 't1', 'e4' are examples of valid indices.";
    public static final String MESSAGE_TASKS_LISTED_OVERVIEW = "%1$d task(s) listed!";
    public static final String MESSAGE_INVALID_DATE = 
            "Date and time are invalid!\n" 
            + "> Tip: try avoiding keywords like `on`, `to` and `due` in your dates and times.\n" 
            + "> You might confuse Jimi!";
    public static final String MESSAGE_START_END_CONSTRAINT = "Start date/time needs to be prior to end date/time!";
    public static final String MESSAGE_WELCOME_JIMI = 
            "Welcome to Jimi, the task manager for people like Jim. \n"
            + "\n"
            + "Let's get started! Try these commands out: \n"
            + MESSAGE_ALL_AVAIL_CMD + "\n"
            + "\n"
            + "To get help for a specific command, type 'help COMMAND_WORD' e.g. 'help add' \n"
            + "To get detailed help for all commands, type 'help' to visit our user guide.";
}

Update invalid index message