import { t as replaceCliName } from "./cli-name-C2MsiUPG.js";
import { r as theme } from "./theme-CLQ2HbnQ.js";
//#region src/cli/help-format.ts
function formatHelpExample(command, description) {
	return `  ${theme.command(replaceCliName(command))}\n    ${theme.muted(description)}`;
}
function formatHelpExampleLine(command, description) {
	const renamed = replaceCliName(command);
	if (!description) return `  ${theme.command(renamed)}`;
	return `  ${theme.command(renamed)} ${theme.muted(`# ${description}`)}`;
}
function formatHelpExamples(examples, inline = false) {
	const formatter = inline ? formatHelpExampleLine : formatHelpExample;
	return examples.map(([command, description]) => formatter(command, description)).join("\n");
}
//#endregion
export { formatHelpExamples as t };
