"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const utils_1 = require("../../utils");
commander_1.program
    .command('upgrade')
    .option('-d|--dry', 'Dry run - list what packages will be upgraded')
    .option('-a|--all', 'Upgrade all grund packages')
    .description('Not yet implemented')
    .action((opts) => {
    const { all, dry } = opts;
    utils_1.log('WARNING! This is a very much initial implementation of the upgrade command.');
    const scope = '--scope @grund';
    const latest = '--latest';
    if (dry) {
        utils_1.exec(`yarn outdated`, [scope]);
    }
    else if (all) {
        utils_1.exec('yarn upgrade', [scope, latest]);
    }
    else {
        utils_1.exec('yarn upgrade-interactive', [scope, latest]);
    }
});
//# sourceMappingURL=index.js.map