import type { RuntimeName } from '../types.js';
import { getInstallInstructions } from './detector.js';

export function formatInstallInstructions(name: RuntimeName): string {
  const hint = getInstallInstructions(name);
  const labels: Record<RuntimeName, string> = {
    claude: 'Claude Code',
    codex: 'Codex',
    opencode: 'OpenCode',
    pi: 'Pi',
  };
  return `To install ${labels[name]}:\n  ${hint}`;
}
