#!/usr/bin/env node
import {
  formatInstallationDisplay,
  getInstallationInfo
} from "../chunk-TZXYBG3R.js";
import "../chunk-OCEFD7V6.js";
import "../chunk-T4EXUIBY.js";
import {
  BaseCommand
} from "../chunk-VR3CDXDT.js";
import "../chunk-LWXRUR6B.js";
import {
  CLI_BIN_NAME,
  DEFAULT_BRANDING
} from "../chunk-6OWHQ7HM.js";
import "../chunk-EC3UJRKZ.js";
import {
  init_esm_shims
} from "../chunk-DHET7RCE.js";

// src/cli/commands/list.ts
init_esm_shims();
var List = class _List extends BaseCommand {
  static summary = "Show installation information";
  static description = `Display details about the ${DEFAULT_BRANDING.NAME} installation (local or plugin mode)`;
  static aliases = ["ls"];
  static examples = [
    {
      description: "Show current installation details",
      command: "<%= config.bin %> <%= command.id %>"
    }
  ];
  static flags = {
    ...BaseCommand.baseFlags
  };
  async run() {
    await this.parse(_List);
    const info = await getInstallationInfo();
    if (!info) {
      this.log("No installation found.");
      this.log(`Run '${CLI_BIN_NAME} init' to create one.`);
      return;
    }
    this.log("");
    this.log(formatInstallationDisplay(info));
    this.log("");
  }
};
export {
  List as default
};
//# sourceMappingURL=list.js.map