Package com.facebook.buck.cli
Class ProjectCommand
- java.lang.Object
-
- com.facebook.buck.cli.CommandWithPluginManager
-
- com.facebook.buck.cli.AbstractCommand
-
- com.facebook.buck.cli.ProjectCommand
-
- All Implemented Interfaces:
Command
,PluginBasedCommand
public class ProjectCommand extends AbstractCommand implements PluginBasedCommand
-
-
Field Summary
-
Fields inherited from class com.facebook.buck.cli.AbstractCommand
commandArgsFile
-
-
Constructor Summary
Constructors Constructor Description ProjectCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getShortDescription()
com.google.common.collect.ImmutableList<? extends PluginBasedSubCommand>
getSubCommands()
String
getTypeOptionName()
boolean
isReadOnly()
void
printUsage(PrintStream stream)
Prints the usage to the provided stream.ExitCode
runWithoutHelp(CommandRunnerParams params)
-
Methods inherited from class com.facebook.buck.cli.AbstractCommand
addCommandSpecificConfigOverrides, convertArgumentsToBuildTargets, createParsingContext, getCommandArgsFile, getCommandLineBuildTargetNormalizer, getConcurrencyLimit, getConfigOverrides, getEnableParserProfiling, getEventListeners, getEventsOutputPath, getExcludeIncompatibleTargets, getExecutionContext, getExecutionContextBuilder, getHostPlatform, getLogConfig, getTargetPlatforms, handleException, handleException, isNoCache, isReuseCurrentConfig, isSourceControlStatsGatheringEnabled, matchBuildTargetsWithLabelsFromSpecs, performsBuild, prepareExecutionContext, printWarning, printWarning, run, runHelp
-
Methods inherited from class com.facebook.buck.cli.CommandWithPluginManager
getPluginManager, setPluginManager
-
-
-
-
Method Detail
-
runWithoutHelp
public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception
- Specified by:
runWithoutHelp
in classAbstractCommand
- Throws:
Exception
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceCommand
- Returns:
- whether the command doesn't modify the state of the filesystem
-
getSubCommands
public com.google.common.collect.ImmutableList<? extends PluginBasedSubCommand> getSubCommands()
- Specified by:
getSubCommands
in interfacePluginBasedCommand
- Returns:
- all subcommands known to this command.
-
getTypeOptionName
public String getTypeOptionName()
- Specified by:
getTypeOptionName
in interfacePluginBasedCommand
- Returns:
- the name of the option that is used to control which subcommand is invoked.
-
printUsage
public void printUsage(PrintStream stream)
Description copied from interface:PluginBasedCommand
Prints the usage to the provided stream.- Specified by:
printUsage
in interfaceCommand
- Specified by:
printUsage
in interfacePluginBasedCommand
- Overrides:
printUsage
in classAbstractCommand
-
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescription
in interfaceCommand
- Specified by:
getShortDescription
in interfacePluginBasedCommand
- Returns:
- a pharse that describes the purpose of this command.
-
-