org.stanwood.media.source.xbmc.cli
Class RemoveCommand

java.lang.Object
  extended by org.stanwood.media.cli.BaseLauncher
      extended by org.stanwood.media.cli.AbstractSubCLICommand
          extended by org.stanwood.media.source.xbmc.cli.AbstractXBMCSubCommand
              extended by org.stanwood.media.source.xbmc.cli.RemoveCommand
All Implemented Interfaces:
ICLICommand

public class RemoveCommand
extends AbstractXBMCSubCommand

This is a sub command of the CLIManageAddons command. It is used to remove xmbc addons. It has the following usage: usage: mm-xbmc [--global-options] remove [--command-options] Command Options: --help, -h Show the help


Constructor Summary
RemoveCommand(ICLICommand rootCommand, IExitHandler exitHandler, java.io.PrintStream stdout, java.io.PrintStream stderr)
          The constructor
 
Method Summary
protected  java.lang.String getPrintArguments()
           
protected  boolean processOptions(java.lang.String[] args, org.apache.commons.cli.CommandLine cmd)
           
protected  boolean run()
          This is executed to make the tool perform its function and should be extended.
 
Methods inherited from class org.stanwood.media.source.xbmc.cli.AbstractXBMCSubCommand
checkNoArgs, getConsole, getUpdater, init
 
Methods inherited from class org.stanwood.media.cli.AbstractSubCLICommand
getDescription, printUsage, processOptionsInternal
 
Methods inherited from class org.stanwood.media.cli.BaseLauncher
addOption, checkSubCommand, displayHelp, doExit, fatal, fatal, getName, getOptions, getStderr, getStdout, handleBadSubCommandOption, info, launch, printOptions, shouldDisplayHelp, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.stanwood.media.cli.ICLICommand
getName
 

Constructor Detail

RemoveCommand

public RemoveCommand(ICLICommand rootCommand,
                     IExitHandler exitHandler,
                     java.io.PrintStream stdout,
                     java.io.PrintStream stderr)
The constructor

Parameters:
rootCommand - The root command
exitHandler - The exit handler
stdout - The output stream
stderr - The error stream
Method Detail

run

protected boolean run()
Description copied from class: BaseLauncher
This is executed to make the tool perform its function and should be extended.

Specified by:
run in class BaseLauncher
Returns:
True if executed without problems, otherwise false

processOptions

protected boolean processOptions(java.lang.String[] args,
                                 org.apache.commons.cli.CommandLine cmd)
Specified by:
processOptions in class AbstractSubCLICommand

getPrintArguments

protected java.lang.String getPrintArguments()
Overrides:
getPrintArguments in class AbstractSubCLICommand