public class DefaultNshExecutionContext extends Object implements NshExecutionContext
| Constructor and Description |
|---|
DefaultNshExecutionContext(NshContext shellContext,
NshBuiltin command) |
public DefaultNshExecutionContext(NshContext shellContext, NshBuiltin command)
public net.thevpc.nuts.core.NWorkspace getWorkspace()
getWorkspace in interface NshExecutionContextpublic net.thevpc.nuts.core.NSession getSession()
getSession in interface NshExecutionContextpublic Nsh getShell()
getShell in interface NshExecutionContextpublic net.thevpc.nuts.io.NPrintStream out()
out in interface NshExecutionContextpublic net.thevpc.nuts.io.NPrintStream err()
err in interface NshExecutionContextpublic InputStream in()
in in interface NshExecutionContextpublic NshContext getShellContext()
getShellContext in interface NshExecutionContextpublic boolean configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmd)
configureFirst in interface NshExecutionContextpublic boolean isAskVersion()
isAskVersion in interface NshExecutionContextpublic DefaultNshExecutionContext setAskVersion(boolean askVersion)
public void configureLast(net.thevpc.nuts.cmdline.NCmdLine cmd)
configureLast in interface NshExecutionContextpublic net.thevpc.nuts.io.NTerminalMode geTerminalMode()
geTerminalMode in interface NshExecutionContextpublic boolean isAskHelp()
isAskHelp in interface NshExecutionContextpublic DefaultNshExecutionContext setAskHelp(boolean askHelp)
setAskHelp in interface NshExecutionContextpublic <T> T getOptions()
getOptions in interface NshExecutionContextpublic DefaultNshExecutionContext setOptions(Object options)
setOptions in interface NshExecutionContextpublic NshNode getRootNode()
getRootNode in interface NshExecutionContextpublic NshNode getParentNode()
getParentNode in interface NshExecutionContextpublic NshVariables vars()
vars in interface NshExecutionContextpublic NshFunctionManager functions()
functions in interface NshExecutionContextpublic NshExecutionContext setOut(PrintStream out)
setOut in interface NshExecutionContextpublic NshExecutionContext setErr(PrintStream err)
setErr in interface NshExecutionContextpublic NshExecutionContext setIn(InputStream in)
setIn in interface NshExecutionContextpublic NshExecutionContext setEnv(Map<String,String> env)
setEnv in interface NshExecutionContextpublic Map<String,Object> getUserProperties()
getUserProperties in interface NshExecutionContextpublic String getDirectory()
getDirectory in interface NshExecutionContextpublic String getHome()
getHome in interface NshExecutionContextpublic void setDirectory(String cwd)
setDirectory in interface NshExecutionContextpublic NshFileSystem getFileSystem()
getFileSystem in interface NshExecutionContextpublic String getAbsolutePath(String path)
getAbsolutePath in interface NshExecutionContextpublic String[] expandPaths(String path)
expandPaths in interface NshExecutionContextpublic NshContext getParentContext()
getParentContext in interface NshExecutionContextpublic NshAliasManager aliases()
aliases in interface NshExecutionContextpublic NshBuiltinManager builtins()
builtins in interface NshExecutionContextpublic String getServiceName()
getServiceName in interface NshExecutionContextpublic NshExecutionContext setSession(net.thevpc.nuts.core.NSession session)
setSession in interface NshExecutionContextpublic net.thevpc.nuts.cmdline.NCmdLineAutoComplete getAutoComplete()
getAutoComplete in interface NshExecutionContextCopyright © 2026 vpc open source initiative. All rights reserved.