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

import {
  BRs,
  RRs,
  txs
} from "../../../../chunk-2ZRZBBQF.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-IHX3I5SM.js";

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

\`\`\`sh
${RRs()} ${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
};
