#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import {
  IBs,
  NBs,
  QEs,
  XSs
} from "../../../../chunk-S47BAUBM.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-DHZ7AZKP.js";

// ../../boilerplates/shared/dist/files/$README.md.js
async function getReadme(props) {
  const content = await QEs(props);
  const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
  const v = IBs();
  const intro = `Generated with [vike.dev/new](https://vike.dev/new) ${`(${XSs.link(`https://www.npmjs.com/package/create-vike/v/${v.version}`, `version ${v.semver.at(-1)}`)})`} using this command:

\`\`\`sh
${NBs()} ${flags}
\`\`\`
  `;
  content.addMarkdown(intro, {
    wrapper: {
      section: "intro"
    }
  });
  content.addMarkdown("", {
    position: "after",
    filter: {
      section: "intro"
    },
    wrapper: {
      section: "TOC"
    }
  });
  content.addMarkdown("", {
    position: "after",
    filter: {
      section: "document"
    },
    wrapper: {
      section: "features"
    }
  });
  return content;
}
export {
  getReadme as default
};
