Script for easily configuring, using, switching and comparing local offline coding models
at main 18 lines 446 B view raw
1const BOLD = "\x1b[1m"; 2const GREEN = "\x1b[0;32m"; 3const YELLOW = "\x1b[1;33m"; 4const RED = "\x1b[0;31m"; 5const RESET = "\x1b[0m"; 6 7export function log(msg: string): void { 8 console.log(`${GREEN}${BOLD}[✓]${RESET} ${msg}`); 9} 10 11export function warn(msg: string): void { 12 console.log(`${YELLOW}${BOLD}[!]${RESET} ${msg}`); 13} 14 15export function err(msg: string): never { 16 console.error(`${RED}${BOLD}[✗]${RESET} ${msg}`); 17 process.exit(1); 18}