collectOptionsFromConfig
collectOptionsFromConfig(
config):Pick<CollectOptions,"exclude"|"allowExec"|"discovery"|"excludePaths">
The CollectOptions slice this configuration owns.
Only keys the config actually sets are present, so a caller can spread its own flags AFTER this without an unset flag having to be stripped first:
collect(root, { …collectOptionsFromConfig(cfg), …flags })
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config | TaskConfig |
Returns
Section titled “Returns”Pick<CollectOptions, "exclude" | "allowExec" | "discovery" | "excludePaths">