You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
794 B
24 lines
794 B
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true }); |
|
exports.handleFilesOption = void 0; |
|
const immutable_1 = require("immutable"); |
|
const cli_options_1 = require("../cli-options"); |
|
function handleFilesOption(incoming) { |
|
const value = incoming.get("files"); |
|
const namespaces = { |
|
core: { |
|
globs: [], |
|
objs: [] |
|
} |
|
}; |
|
const processed = (0, cli_options_1.makeFilesArg)(value); |
|
if (processed.globs.length) { |
|
namespaces.core.globs = processed.globs; |
|
} |
|
if (processed.objs.length) { |
|
namespaces.core.objs = processed.objs; |
|
} |
|
return [incoming.set("files", (0, immutable_1.fromJS)(namespaces)), []]; |
|
} |
|
exports.handleFilesOption = handleFilesOption; |
|
//# sourceMappingURL=handleFilesOption.js.map
|