"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLicenseCommand = createLicenseCommand;
const registration_1 = require("../registration");
const license_cleanup_reminders_1 = require("../license-cleanup-reminders");
const license_install_1 = require("../license-install");
const license_status_1 = require("../license-status");
const license_guidance_1 = require("../../../lib/license/license-guidance");
async function createLicenseCommand() {
    const { Command } = await import("commander");
    const command = new Command("license");
    command
        .description("Install, inspect, and use Day Shift licenses.")
        .addHelpText("after", [
        "",
        "Commercial guidance:",
        ...(0, license_guidance_1.renderLicenseWebsiteGuidanceLines)().map((line) => `  ${line}`),
        `  ${license_guidance_1.DAY_SHIFT_LICENSE_REMOVE_FUTURE_GUIDANCE}`
    ].join("\n"));
    (0, registration_1.registerCommand)(command, await (0, license_cleanup_reminders_1.createLicenseCleanupRemindersCommand)());
    (0, registration_1.registerCommand)(command, await (0, license_install_1.createLicenseInstallCommand)());
    (0, registration_1.registerCommand)(command, await (0, license_status_1.createLicenseStatusCommand)());
    return command;
}
