public class TargetsCommand extends AbstractCommand
commandArgsFile
Constructor and Description |
---|
TargetsCommand() |
Modifier and Type | Method and Description |
---|---|
com.facebook.buck.cli.PathArguments.ReferencedFiles |
getReferencedFiles(AbsPath projectRoot) |
String |
getShortDescription() |
com.google.common.collect.ImmutableSet<Path> |
getTargetHashModifiedPaths() |
com.google.common.collect.ImmutableSet<String> |
getTypes() |
boolean |
isReadOnly() |
ExitCode |
runWithoutHelp(CommandRunnerParams params) |
boolean |
shouldUseJsonFormat()
Determines if the results should be in JSON format.
|
addCommandSpecificConfigOverrides, convertArgumentsToBuildTargets, createParsingContext, getCommandArgsFile, getCommandLineBuildTargetNormalizer, getConcurrencyLimit, getConfigOverrides, getEnableParserProfiling, getEventListeners, getEventsOutputPath, getExcludeIncompatibleTargets, getExecutionContext, getExecutionContextBuilder, getHostPlatform, getLogConfig, getTargetPlatforms, handleException, handleException, isNoCache, isReuseCurrentConfig, isSourceControlStatsGatheringEnabled, matchBuildTargetsWithLabelsFromSpecs, performsBuild, prepareExecutionContext, printUsage, printWarning, printWarning, run, runHelp
getPluginManager, setPluginManager
public com.google.common.collect.ImmutableSet<String> getTypes()
public com.facebook.buck.cli.PathArguments.ReferencedFiles getReferencedFiles(AbsPath projectRoot) throws IOException
IOException
public boolean shouldUseJsonFormat()
--json
argument or when there is at least one item in the --output-attributes
arguments.
The --output--attributes
arguments implicitly enables JSON format because there is
currently no way to output attributes in non-JSON format. Also, it keeps this command
consistent with the query command.
public com.google.common.collect.ImmutableSet<Path> getTargetHashModifiedPaths()
--assume-modified-files
if either --assume-modified-files
or --assume-no-modified-files
is used, absent otherwise.public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception
runWithoutHelp
in class AbstractCommand
Exception
public boolean isReadOnly()
public String getShortDescription()