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
-
public class Alias extends OptionsConsoleCommand
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 Constructor Description Alias()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addAlias(ConsoleInput ci, java.lang.String aliasName, java.util.List argList)
private void
deleteAlias(ConsoleInput ci, java.lang.String aliasName)
void
execute(java.lang.String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine)
execute using the specified command line.java.lang.String
getCommandDescriptions()
return high-level help about the commands supported by this object.private void
printAlias(ConsoleInput ci, java.lang.String aliasName)
private void
printAliases(ConsoleInput ci)
prints out a list of all the aliases-
Methods 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
-
-
-
-
Method Detail
-
getCommandDescriptions
public java.lang.String 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(java.lang.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
private void printAlias(ConsoleInput ci, java.lang.String aliasName)
- Parameters:
aliasName
-
-
deleteAlias
private void deleteAlias(ConsoleInput ci, java.lang.String aliasName)
- Parameters:
object
-
-
addAlias
private void addAlias(ConsoleInput ci, java.lang.String aliasName, java.util.List argList)
- Parameters:
object
-argList
-
-
printAliases
private void printAliases(ConsoleInput ci)
prints out a list of all the aliases- Parameters:
out
-
-
-