import { detectJsPackageManager } from './chunk-LUQOMV7K.js';
import { ansis_default } from './chunk-3RZQ5CCT.js';
import { __name } from './chunk-IBAHCH6O.js';

// src/cli/helpers/pretty-format.ts
var fmt = {
  decorator: /* @__PURE__ */ __name((s) => ansis_default.magenta(s), "decorator"),
  filePath: /* @__PURE__ */ __name((s) => `\u{1F4C2} ${ansis_default.cyan.italic(s)}`, "filePath"),
  fileName: /* @__PURE__ */ __name((s) => `${ansis_default.cyan.italic(s)}`, "fileName"),
  command: /* @__PURE__ */ __name((s, opts) => {
    let jsPackageManager;
    if (opts?.jsPackageManager === true) {
      jsPackageManager = detectJsPackageManager();
    } else if (opts?.jsPackageManager) {
      jsPackageManager = opts.jsPackageManager;
    }
    if (jsPackageManager) {
      s = `${jsPackageManager.exec} ${s}`;
    }
    return ansis_default.green.italic(s);
  }, "command"),
  packageName: /* @__PURE__ */ __name((s) => ansis_default.green.italic(s), "packageName")
};
var logLines = /* @__PURE__ */ __name((lines) => {
  for (const line of lines) {
    if (!line && line !== "") continue;
    console.log(line);
  }
}, "logLines");

export { fmt, logLines };
//# sourceMappingURL=chunk-DV5LKKVA.js.map
//# sourceMappingURL=chunk-DV5LKKVA.js.map