Updated prompt and some messages.

This commit is contained in:
Michael Hierweck 2012-11-28 17:43:07 +01:00
parent 883c37fcac
commit 9c4eca45ce
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ public class ConsoleWrapper {
public String readPassword() throws JSCliException {
try {
String pw = cons.readLine("password:", new Character('*'));
String pw = cons.readLine("Password: ", new Character('*'));
cons.setDefaultPrompt(prompt);
return pw;
} catch (IOException e) {

View File

@ -14,7 +14,7 @@ public class Main {
CommandlineParser cmdParser = new CommandlineParser(args);
String runAs = cmdParser.getRunAs();
console = new ConsoleWrapper();
console.open(runAs + "@hsadmin>");
console.open(runAs + "@hsadmin> ");
JSONFormatter formatter = new JSONFormatter();
ScriptClient scriptClient = new ScriptClient(console, cmdParser.getUser(), runAs);
String file = cmdParser.getFile();
@ -26,7 +26,7 @@ public class Main {
try {
console.println(formatter.format(scriptClient.execute(new FileReader(fileHandle))));
} catch (FileNotFoundException e) {
System.err.println("file not found: " + file);
System.err.println("File not found: " + file);
}
}
}
@ -40,7 +40,7 @@ public class Main {
try {
console.println(formatter.format(scriptClient.execute(command)));
} catch (Exception e) {
console.println("ERR: " + e.getLocalizedMessage() + "\n");
console.println("Error: " + e.getLocalizedMessage() + "\n");
}
command = console.readInput();
}