"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("@oclif/command");
const open_1 = __importDefault(require("open"));
const path_1 = __importDefault(require("path"));
const update_1 = __importDefault(require("../utils/update"));
const command_2 = __importDefault(require("../extends/command"));
class Log extends command_2.default {
    run() {
        this.parse(Log);
        (0, open_1.default)(path_1.default.join(update_1.default.config.CacheRoot, 'logs'));
        return Promise.resolve();
    }
}
exports.default = Log;
Log.description = 'Open opdev-cli logs';
Log.flags = {
    help: command_1.flags.help({
        char: 'h',
    }),
};
Log.examples = [['$ {{cli}} log', 'open the log directory']];
