"use strict";
var schematic_command_1 = require("@angular/cli/models/schematic-command");
var command = new schematic_command_1.SchematicCommand({}, null);
var defaultCollectionName;
try {
    defaultCollectionName = require('@angular/cli/utilities/config').getDefaultSchematicCollection();
}
catch (e) {
    defaultCollectionName = require('@angular/cli/models/config').CliConfig.getValue('defaults.schematics.collection');
}
var schematicsProvider = {
    getCollection: function (collectionName) {
        return command.getCollection(collectionName);
    },
    getEngineHost: function () {
        return command.getEngineHost();
    },
    getSchematic: function (collection, schematicName, allowPrivate) {
        return command.getSchematic(collection, schematicName, allowPrivate);
    },
    getDefaultSchematicCollection: function () {
        return defaultCollectionName;
    }
};
module.exports = schematicsProvider;
