T - Typepublic abstract class NRepositoryCmdBase<T extends net.thevpc.nuts.spi.NRepositoryCmd> extends Object implements net.thevpc.nuts.spi.NRepositoryCmd
| Modifier and Type | Field and Description |
|---|---|
protected net.thevpc.nuts.NRepository |
repo |
| Constructor and Description |
|---|
NRepositoryCmdBase(net.thevpc.nuts.NRepository repo,
String commandName) |
| Modifier and Type | Method and Description |
|---|---|
T |
configure(boolean skipUnsupported,
String... args)
configure the current command with the given arguments.
|
boolean |
configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine) |
String |
getCommandName() |
net.thevpc.nuts.NFetchMode |
getFetchMode() |
protected net.thevpc.nuts.NRepository |
getRepo() |
protected void |
invalidateResult() |
abstract T |
run() |
T |
setFetchMode(net.thevpc.nuts.NFetchMode fetchMode) |
public NRepositoryCmdBase(net.thevpc.nuts.NRepository repo,
String commandName)
public String getCommandName()
protected void invalidateResult()
public net.thevpc.nuts.NFetchMode getFetchMode()
public T setFetchMode(net.thevpc.nuts.NFetchMode fetchMode)
protected net.thevpc.nuts.NRepository getRepo()
public T configure(boolean skipUnsupported, String... args)
NCmdLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface net.thevpc.nuts.cmdline.NCmdLineConfigurableconfigure in interface net.thevpc.nuts.spi.NRepositoryCmdargs - argument to configure withthis instancepublic boolean configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine)
configureFirst in interface net.thevpc.nuts.cmdline.NCmdLineConfigurablepublic abstract T run()
run in interface net.thevpc.nuts.spi.NRepositoryCmdCopyright © 2025 vpc open source initiative. All rights reserved.