public class PicocliCommands
extends java.lang.Object
implements org.jline.console.CommandRegistry
Completer interface. SystemCompleter generates completion
candidates for the specified command line based on the CommandLine.Model.CommandSpec that this PicocliCommands was constructed with.| Modifier and Type | Class and Description |
|---|---|
static class |
PicocliCommands.ClearScreen
Command that clears the screen.
|
static class |
PicocliCommands.PicocliCommandsFactory
Command factory that is necessary for applications that want the use the
ClearScreen subcommand. |
| Constructor and Description |
|---|
PicocliCommands(picocli.CommandLine cmd) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
commandAliases() |
org.jline.console.CmdDesc |
commandDescription(java.util.List<java.lang.String> args) |
org.jline.console.CmdDesc |
commandDescription(java.lang.String command) |
java.util.List<java.lang.String> |
commandInfo(java.lang.String command) |
java.util.Set<java.lang.String> |
commandNames() |
org.jline.reader.impl.completer.SystemCompleter |
compileCompleters() |
java.lang.Object |
execute(org.jline.console.CommandRegistry.CommandSession session,
java.lang.String command,
java.lang.String[] args) |
boolean |
hasCommand(java.lang.String command) |
java.lang.Object |
invoke(org.jline.console.CommandRegistry.CommandSession session,
java.lang.String command,
java.lang.Object... args) |
java.lang.String |
name()
Returns the name shown for this collection of picocli commands in the usage help message.
|
void |
name(java.lang.String newName)
Sets the name shown for this collection of picocli commands in the usage help message.
|
public boolean hasCommand(java.lang.String command)
hasCommand in interface org.jline.console.CommandRegistrycommand - public org.jline.reader.impl.completer.SystemCompleter compileCompleters()
compileCompleters in interface org.jline.console.CommandRegistrypublic org.jline.console.CmdDesc commandDescription(java.util.List<java.lang.String> args)
commandDescription in interface org.jline.console.CommandRegistryargs - public java.util.List<java.lang.String> commandInfo(java.lang.String command)
commandInfo in interface org.jline.console.CommandRegistrypublic java.lang.Object invoke(org.jline.console.CommandRegistry.CommandSession session,
java.lang.String command,
java.lang.Object... args)
throws java.lang.Exception
invoke in interface org.jline.console.CommandRegistryjava.lang.Exceptionpublic java.lang.Object execute(org.jline.console.CommandRegistry.CommandSession session,
java.lang.String command,
java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Set<java.lang.String> commandNames()
commandNames in interface org.jline.console.CommandRegistrypublic java.util.Map<java.lang.String,java.lang.String> commandAliases()
commandAliases in interface org.jline.console.CommandRegistrypublic org.jline.console.CmdDesc commandDescription(java.lang.String command)
public java.lang.String name()
name(String), this returns CommandRegistry.name().name in interface org.jline.console.CommandRegistrypublic void name(java.lang.String newName)
newName - the new name to show