import { cyan, magenta } from 'colorette' export function showHelp (meta?) { const sections: string[] = [] if (meta.usage) { sections.push(magenta('> ') + 'Usage: ' + cyan(meta.usage)) } if (meta.description) { sections.push(magenta('⋮ ') + meta.description) } sections.push(`Use ${cyan('nu [command] --help')} to see help for each command`) console.log(sections.join('\n\n') + '\n') }