Allow not explicitly specifying targets
This commit is contained in:
parent
f32ee5a1e3
commit
4ada2c37f5
2 changed files with 6 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ DEFAULT_CONFIG.add(
|
|||
|
||||
DEFAULT_CONFIG.add(
|
||||
"targets",
|
||||
"The locations a config file should be placed in. Must be set for all files. Either a path or a list of paths",
|
||||
has_constant_value=False)
|
||||
"The locations a config file should be placed in. Either a path or a list of paths",
|
||||
value=[])
|
||||
|
||||
DEFAULT_CONFIG.add(
|
||||
"action",
|
||||
|
|
|
|||
|
|
@ -109,6 +109,10 @@ class Processor:
|
|||
self._update_known_hash(target)
|
||||
|
||||
def _process_parseable(self, lines: List[str], config: Config, source: Path) -> None:
|
||||
if not config.targets:
|
||||
logger.info(" (no targets)")
|
||||
return
|
||||
|
||||
for target in config.targets:
|
||||
logger.info(f" -> {style_path(str(target))}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue