public class CommandLineTargetNodeSpecParser extends Object
BuildTargetMatcherTargetNodeParser
to normalize user input before
parsing, resolve aliases and validate that base path existsConstructor and Description |
---|
CommandLineTargetNodeSpecParser(Cell rootCell,
Path absoluteClientWorkingDirectory,
BuckConfig config,
BuildTargetMatcherTargetNodeParser parser) |
Modifier and Type | Method and Description |
---|---|
protected String |
normalizeBuildTargetString(String target) |
com.google.common.collect.ImmutableSet<TargetNodeSpec> |
parse(Cell owningCell,
String arg)
Parse command line argument provided by user into a set of
TargetNodeSpec s |
public CommandLineTargetNodeSpecParser(Cell rootCell, Path absoluteClientWorkingDirectory, BuckConfig config, BuildTargetMatcherTargetNodeParser parser)
public com.google.common.collect.ImmutableSet<TargetNodeSpec> parse(Cell owningCell, String arg)
TargetNodeSpec
sowningCell
- Cell that owns the resolution of a specarg
- Unresolved command line argument, can be alias or target name or recursive spec