/** * @param {string | array.string} path * Path or array of paths to files or directories with index definitions * @param {ValidateOptions} [options] */ constructor(path, options) { this.paths = isArrayLike(path) ? Array.from(path) : [path]; this.options = extend({logger: console}, options); }
/** * @param {IndexManager} manager * @param {string | array.string} path * Path or array of paths to files or directories with index definitions * @param {SyncOptions} [options] */ constructor(manager, path, options) { this.manager = manager; this.paths = isArrayLike(path) ? Array.from(path) : [path]; this.options = extend({logger: console}, options); if (this.paths.find((p) => p === '-')) { // Can't do interactive prompts if processing from stdin this.options.interactive = false; } }