Package com.biglybt.ui.console.commands
Class Alias
java.lang.Object
com.biglybt.ui.console.commands.IConsoleCommand
com.biglybt.ui.console.commands.OptionsConsoleCommand
com.biglybt.ui.console.commands.Alias
the alias command will add/remove/modify aliases to the CLI input reader.
aliases will be expanded and take priority over standard commands.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.ui.console.commands.IConsoleCommand
IConsoleCommand.TorrentComparator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAlias
(ConsoleInput ci, String aliasName, List argList) private void
deleteAlias
(ConsoleInput ci, String aliasName) void
execute
(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine) execute using the specified command line.return high-level help about the commands supported by this object.private void
printAlias
(ConsoleInput ci, String aliasName) private void
prints out a list of all the aliasesMethods inherited from class com.biglybt.ui.console.commands.OptionsConsoleCommand
execute, getOptions, getParser, printHelpExtra
Methods inherited from class com.biglybt.ui.console.commands.IConsoleCommand
expandVariable, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
Constructor Details
-
Alias
public Alias()- Parameters:
_commandNames
-
-
-
Method Details
-
getCommandDescriptions
Description copied from class:IConsoleCommand
return high-level help about the commands supported by this object.- Specified by:
getCommandDescriptions
in classIConsoleCommand
- Returns:
-
execute
public void execute(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine) Description copied from class:OptionsConsoleCommand
execute using the specified command line.- Specified by:
execute
in classOptionsConsoleCommand
-
printAlias
- Parameters:
aliasName
-
-
deleteAlias
- Parameters:
object
-
-
addAlias
- Parameters:
object
-argList
-
-
printAliases
prints out a list of all the aliases- Parameters:
out
-
-