package org.osiam.shell;

import java.io.IOException;

import org.osiam.shell.command.ConnectionCommand;
import org.osiam.shell.command.io.AccessTokenConverter;
import org.osiam.shell.command.io.GroupConverter;
import org.osiam.shell.command.io.UserConverter;

import de.raysha.lib.jsimpleshell.Shell;
import de.raysha.lib.jsimpleshell.ShellBuilder;

public class Starter {

	public static void main(String[] args) throws IOException {
		final Shell shell = ShellBuilder.shell("osiam-shell")
								.addHandler(new ConnectionCommand())
								.addAuxHandler(new AccessTokenConverter())
								.addAuxHandler(new UserConverter())
								.addAuxHandler(new GroupConverter())
							.build();
		
		shell.commandLoop();
	}

}

@@ -19,16 +19,37 @@
 shell;%0A%0A
+import java.io.File;%0A
 import j
@@ -506,16 +506,106 @@
 shell%22)%0A
+%09%09%09%09%09%09%09%09.setHistoryFile(new File(System.getProperty(%22user.home%22), %22.osiamshell_history%22))%0A
 %09%09%09%09%09%09%09%09

configure persistent history