
io.permazen.cli.jshell.PermazenJShellShell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-cli Show documentation
Show all versions of permazen-cli Show documentation
Permazen classes supporting command line interfaces.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.cli.jshell;
import com.google.common.base.Preconditions;
import io.permazen.cli.PermazenShellRequest;
import org.dellroad.jct.core.ShellRequest;
import org.dellroad.jct.jshell.JShellShell;
import org.dellroad.jct.jshell.JShellShellSession;
/**
* A version of the JCT {@link JShellShell} that is Permazen aware.
*
*
* Intended to provide the shell on which the {@link PermazenJShellCommand} is based.
*/
public class PermazenJShellShell extends JShellShell {
@Override
public JShellShellSession newShellSession(ShellRequest request) {
Preconditions.checkArgument(request instanceof PermazenShellRequest, "request is not a PermazenShellRequest");
return new PermazenJShellShellSession(this, (PermazenShellRequest)request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy