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

import {
  RMs,
  jMs,
  t1s
} from "../../../../chunk-NRI5GDVQ.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-DHZ7AZKP.js";

// ../../boilerplates/shared/dist/files/$README.md.js
async function getReadme(props) {
  const content = await t1s(props);
  const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
  const v = jMs();
  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
${RMs()} ${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
};
