public interface NshContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NshContext.Watcher |
Nsh nsh()
NshNode getRootNode()
NshContext setRootNode(NshNode root)
NshNode getParentNode()
NshContext setParentNode(NshNode parent)
InputStream in()
net.thevpc.nuts.io.NPrintStream out()
net.thevpc.nuts.io.NPrintStream err()
NshVariables vars()
NshContext.Watcher bindStreams(InputStream out, InputStream err, OutputStream in)
NshFunctionManager functions()
NshContext setOut(PrintStream out)
NshContext setErr(PrintStream out)
NshContext setIn(InputStream in)
NshExecutionContext createCommandContext(NshBuiltin command)
List<NshAutoCompleteCandidate> resolveAutoCompleteCandidates(String commandName, List<String> autoCompleteWords, int wordIndex, String autoCompleteLine)
NshContext setEnv(Map<String,String> env)
String getDirectory()
String getHome()
void setDirectory(String cwd)
NshFileSystem getFileSystem()
void setFileSystem(NshFileSystem fileSystem)
NshContext getParentContext()
NshAliasManager aliases()
void setBuiltins(NshBuiltinManager commandManager)
NshBuiltinManager builtins()
NshResult getLastResult()
void setLastResult(NshResult result)
void setAliases(NshAliasManager aliasManager)
void copyFrom(NshContext other)
String getServiceName()
void setServiceName(String serviceName)
void setArgs(String[] args)
String getArg(int index)
int getArgsCount()
String[] getArgsArray()
net.thevpc.nuts.core.NSession getSession()
NshContext setSession(net.thevpc.nuts.core.NSession session)
net.thevpc.nuts.core.NWorkspace getWorkspace()
net.thevpc.nuts.cmdline.NCmdLineAutoComplete getAutoComplete()
void setAutoComplete(net.thevpc.nuts.cmdline.NCmdLineAutoComplete value)
void setFunctionManager(NshFunctionManager functionManager)
Copyright © 2026 vpc open source initiative. All rights reserved.