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 IConsoleCommand
IConsoleCommand.TorrentComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAlias(ConsoleInput ci, String aliasName, List argList) private voiddeleteAlias(ConsoleInput ci, String aliasName) voidexecute(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 voidprintAlias(ConsoleInput ci, String aliasName) private voidprints out a list of all the aliasesMethods inherited from class OptionsConsoleCommand
execute, getOptions, getParser, printHelpExtraMethods inherited from class IConsoleCommand
expandVariable, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
Constructor Details
-
Alias
public Alias()- Parameters:
_commandNames-
-
-
Method Details
-
getCommandDescriptions
Description copied from class:IConsoleCommandreturn high-level help about the commands supported by this object.- Specified by:
getCommandDescriptionsin classIConsoleCommand- Returns:
-
execute
public void execute(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine) Description copied from class:OptionsConsoleCommandexecute using the specified command line.- Specified by:
executein classOptionsConsoleCommand- Parameters:
commandName-console-commandLine-
-
printAlias
- Parameters:
aliasName-
-
deleteAlias
- Parameters:
object-
-
addAlias
- Parameters:
argList-object-
-
printAliases
-