"use strict";
class PrepareCommand {
    constructor($errors, $platformService, $platformCommandParameter) {
        this.$errors = $errors;
        this.$platformService = $platformService;
        this.$platformCommandParameter = $platformCommandParameter;
        this.allowedParameters = [this.$platformCommandParameter];
    }
    execute(args) {
        return (() => {
            this.$platformService.preparePlatform(args[0], true).wait();
        }).future()();
    }
}
exports.PrepareCommand = PrepareCommand;
$injector.registerCommand("prepare", PrepareCommand);
