import edu.uw.cline.ShellPrompt;

/**
 * Example program that creates a ShellPrompt and then starts it. Type
 * exit to exit.
 */
public class ShellPromptExample {

	public static void main(String args[]) {

		ShellPrompt prompt = new ShellPrompt("prompt");
		
		// test where the output streams are directed 
		System.out.println("This message sent to standard output");
		System.err.println("This message sent to standard error");

		// register the QuestionCommand
		System.out.println("Registering the QuestionCommand");
		QuestionCommand questionCommand = new QuestionCommand();
		prompt.registerCommand(questionCommand);

		// start the prompt - the program will then wait for user-input
		System.out.println("Starting prompt...");
		prompt.start();
	}
}

