Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
13 lines
400 B
TypeScript
13 lines
400 B
TypeScript
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',
|
|
};
|
|
return `To install ${labels[name]}:\n ${hint}`;
|
|
}
|