"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@oclif/core");
const command_base_1 = require("../cli-common/command-base");
const command_base_tenantless_1 = require("../command-base-tenantless");
class Sync extends command_base_tenantless_1.CommandBaseTenantless {
    run() {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            this.bootstrap();
            const { args, flags } = yield this.parse(Sync);
            let depToTarget = yield this.acquireDependencyToTarget(this.ctor.name, flags.only, args.name);
            yield this._ops.gitSyncWith(flags.with, flags.includeDeps, depToTarget);
        });
    }
}
exports.default = Sync;
Sync.description = 'Merges the given branch into the current branch.';
Sync.flags = Object.assign({ help: core_1.Flags.help({ char: 'h' }), with: core_1.Flags.string({ char: 'b', required: true, description: "Branch to merge into this one" }) }, command_base_1.commandBase.dependencyTargetingFlags);
Sync.args = Object.assign({}, command_base_1.commandBase.dependencyTargetingArgs);
//# sourceMappingURL=sync.js.map