@@ -0,0 +1,1499 @@
+%0A/*%0A * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.%0A */%0A%0Apackage org.jsimpledb.cli.cmd;%0A%0Aimport java.util.Map;%0A%0Aimport org.jsimpledb.SessionMode;%0Aimport org.jsimpledb.cli.CliSession;%0Aimport org.jsimpledb.parse.EnumNameParser;%0Aimport org.jsimpledb.parse.ParseContext;%0Aimport org.jsimpledb.parse.Parser;%0A%0A@Command(modes = %7B SessionMode.KEY_VALUE, SessionMode.CORE_API, SessionMode.JSIMPLEDB %7D)%0Apublic class SetSessionModeCommand extends AbstractCommand %7B%0A%0A    public SetSessionModeCommand() %7B%0A        super(%22set-session-mode mode:mode%22);%0A    %7D%0A%0A    @Override%0A    public String getHelpSummary() %7B%0A        return %22Sets the CLI session mode%22;%0A    %7D%0A%0A    @Override%0A    public String getHelpDetail() %7B%0A        return %22Changes the current CLI session mode. Specify JSIMPLEDB, CORE_API, or KEY_VALUE.%22;%0A    %7D%0A%0A    @Override%0A    protected Parser%3C?%3E getParser(String typeName) %7B%0A        return %22mode%22.equals(typeName) ? new EnumNameParser%3CSessionMode%3E(SessionMode.class, false) : super.getParser(typeName);%0A    %7D%0A%0A    @Override%0A    public CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map%3CString, Object%3E params) %7B%0A        final SessionMode mode = (SessionMode)params.get(%22mode%22);%0A        return new CliSession.Action() %7B%0A            @Override%0A            public void run(CliSession session) throws Exception %7B%0A                session.setMode(mode);%0A                session.getWriter().println(%22Set session mode to %22 + mode);%0A            %7D%0A        %7D;%0A    %7D%0A%7D%0A%0A

Add new file accidentally forgotten in 7b297f45.