import { OutputInterface } from "@2fd/command" ; export interface IOutputOptions { verbose : boolean ; } export class Output { constructor ( public out , public options ) { } ok ( ref , value ) { this . out . log ( "%c ✓ %s: %c%s" , "color:green" , ref , "color:grey" , value ) ; } info ( ref , value ) { if ( this . options . verbose ) { this . out . log ( "%c ❭ %s: %c%s" , "color:yellow" , ref , "color:grey" , value ) ; } } error ( err ) { this . out . error ( "%c ✗ %s" , "color:red" , err . message || err ) ; if ( this . options . verbose ) { this . out . error ( "%c%s" , "color:grey" , err . stack || "    NO STACK" ) ; } this . out . error ( "" ) ; process . exit ( 1 ) ; } }