import { F as versionForDisplay } from "./util-CsmUMRtR.js";
import { l as createParserProgram } from "./asset-DBj3nifv.js";
import { t as create } from "./create-BF3vSlSR.js";
import { r as runCliCommand } from "./entry-util-Bh1ksaYK.js";
import { Command, Option } from "commander";
//#region src/commands/create.parser.ts
function setupCreateParserProgram() {
	const program = new Command();
	program.name("vivliostyle create").description("scaffold a new Vivliostyle project").arguments("[projectPath]").option("--title <title>", "title").option("--author <author>", "author").option("-l, --language <language>", "language").option("-s, --size <size>", "paper size").option("-T, --theme <theme>", "theme").option("--no-theme", "Do not include a theme.").option("--template <template>", `Template source in the format of \`[provider]:repo[/subpath][#ref]\` or as a local directory to copy from.`).option("--install-dependencies", "Install dependencies after creating a project.").option("--no-install-dependencies", "Do not install dependencies after creating a project.").option("--create-config-file-only", `Create a Vivliostyle config file without generating project template files.`).addOption(new Option("--proxy-server <proxyServer>", `HTTP/SOCK proxy server url`)).addOption(new Option("--proxy-bypass <proxyBypass>", `optional comma-separated domains to bypass proxy`)).addOption(new Option("--proxy-user <proxyUser>", `optional username for HTTP proxy authentication`)).addOption(new Option("--proxy-pass <proxyPass>", `optional password for HTTP proxy authentication`)).addOption(new Option("--log-level <level>", "specify a log level of console outputs").choices([
		"silent",
		"info",
		"verbose",
		"debug"
	]).default("info")).version(versionForDisplay, "-v, --version");
	return program;
}
const parseCreateCommand = createParserProgram({
	setupProgram: setupCreateParserProgram,
	parseArgs: (options, [projectPath]) => ({
		...options,
		projectPath
	})
});
//#endregion
//#region src/commands/create.runner.ts
async function runCreateCli(argv) {
	await runCliCommand(async (cliSignal) => {
		await create({
			...parseCreateCommand(argv),
			signal: cliSignal
		});
	});
}
//#endregion
export { runCreateCli as t };

//# sourceMappingURL=create.runner-C4VHkWP9.js.map