public final class PandaShell extends Object implements org.panda_lang.framework.design.interpreter.messenger.LoggerHolder
| Constructor and Description |
|---|
PandaShell(Supplier<org.slf4j.Logger> logger,
InputStream input)
Create a new instance of shell
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInput()
Get input of shell
|
org.slf4j.Logger |
getLogger() |
void |
invoke(String... args)
Invoke the given arguments
|
public PandaShell(Supplier<org.slf4j.Logger> logger, InputStream input)
logger - the logger used to send responsespublic void invoke(String... args) throws Exception
args - array of argumentsException - if something happenpublic InputStream getInput()
public org.slf4j.Logger getLogger()
getLogger in interface org.panda_lang.framework.design.interpreter.messenger.LoggerHolderCopyright © 2020. All rights reserved.