public abstract class NshBuiltinBase extends Object implements NshBuiltin
| Constructor and Description |
|---|
NshBuiltinBase(String name,
Class<?> optionsSupplier) |
NshBuiltinBase(String name,
Supplier<?> optionsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
autoComplete(NshExecutionContext context,
net.thevpc.nuts.cmdline.NCmdLineAutoComplete autoComplete) |
protected net.thevpc.nuts.cmdline.NCmdLine |
cmdLine(String[] args,
NshExecutionContext context) |
protected static Object |
createOptions(Class<?> optionsClass) |
void |
exec(String[] args,
NshExecutionContext context)
exec and return error code
|
String |
getHelp() |
String |
getHelpHeader() |
String |
getName() |
protected void |
init(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context) |
boolean |
isEnabled() |
protected abstract void |
main(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context) |
protected abstract boolean |
nextNonOption(net.thevpc.nuts.cmdline.NArg arg,
net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context) |
protected abstract boolean |
nextOption(net.thevpc.nuts.cmdline.NArg arg,
net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context) |
void |
setEnabled(boolean enabled) |
protected void |
throwExecutionException(Object errObject,
int errorCode,
net.thevpc.nuts.core.NSession session) |
protected void |
validate(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context) |
protected abstract boolean nextOption(net.thevpc.nuts.cmdline.NArg arg,
net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context)
protected abstract boolean nextNonOption(net.thevpc.nuts.cmdline.NArg arg,
net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context)
protected abstract void main(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context)
protected void validate(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context)
protected void init(net.thevpc.nuts.cmdline.NCmdLine cmdLine,
NshExecutionContext context)
public void autoComplete(NshExecutionContext context, net.thevpc.nuts.cmdline.NCmdLineAutoComplete autoComplete)
autoComplete in interface NshBuiltinpublic String getHelp()
getHelp in interface NshBuiltinpublic String getName()
getName in interface NshBuiltinpublic boolean isEnabled()
isEnabled in interface NshBuiltinpublic void setEnabled(boolean enabled)
setEnabled in interface NshBuiltinpublic String getHelpHeader()
getHelpHeader in interface NshBuiltinprotected void throwExecutionException(Object errObject, int errorCode, net.thevpc.nuts.core.NSession session)
public final void exec(String[] args, NshExecutionContext context)
NshBuiltinexec in interface NshBuiltinargs - commandcontext - contextprotected net.thevpc.nuts.cmdline.NCmdLine cmdLine(String[] args, NshExecutionContext context)
Copyright © 2026 vpc open source initiative. All rights reserved.