"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const lib_1 = require("../../lib");
const core_1 = require("@angular-devkit/core");
const angular_utility_1 = require("../../lib/angular-utility");
const strings_1 = require("@angular-devkit/core/src/utils/strings");
/**
 * TODO (not implemented yet)
 * @param _options
 */
function default_1(_options) {
    return (tree, _context) => {
        let project = lib_1.loadProject(tree, _context);
        let relativePath = _options.name || `monitoring/${strings_1.dasherize(_options.variable)}-card`;
        const { name, path } = lib_1.getAngularProjectPath(relativePath, tree, _options);
        let sourceTemplates = schematics_1.url('files');
        return angular_utility_1.applyWithOverwriteRule(sourceTemplates, [
            schematics_1.template(Object.assign({ name }, core_1.strings)),
            schematics_1.move(path)
        ], _options.overwrite);
    };
}
exports.default = default_1;
//# sourceMappingURL=index.js.map