import chalk from 'chalk' ; /**
 * Unknown command
 */ export function unknownCommand ( helpTemplate , cmd ) { return new HelpError ( `\n${ chalk . bold . red ( `!` ) } Unknown command "${ cmd }"\n${ helpTemplate }` ) ; } /**
 * Custom help error used to display help
 * errors without printing a stack trace
 */ export class HelpError extends Error { constructor ( msg ) { super ( msg ) ; Object . setPrototypeOf ( this , HelpError . prototype ) ; } }