import { Terminal } from '../Terminal' ; import { StringBufferTerminalProvider } from '../StringBufferTerminalProvider' ; import { Colors } from '../Colors' ; let terminal ; let provider ; function verifyProvider ( ) { expect ( { log : provider . getOutput ( ) , warning : provider . getWarningOutput ( ) , error : provider . getErrorOutput ( ) , verbose : provider . getVerbose ( ) , debug : provider . getDebugOutput ( ) } ) . toMatchSnapshot ( ) ; } describe ( '01 color enabled' , ( ) => { beforeEach ( ( ) => { provider = new StringBufferTerminalProvider ( true ) ; terminal = new Terminal ( provider ) ; } ) ; describe ( '01 basic terminal functions' , ( ) => { describe ( '01 write' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . write ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . write ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . write ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . write ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . write ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '02 writeLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '03 writeWarning' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeWarning ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeWarning ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeWarning ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeWarning ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeWarning ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '04 writeWarningLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeWarningLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeWarningLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeWarningLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeWarningLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeWarningLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '05 writeError' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeError ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeError ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeError ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeError ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeError ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '06 writeErrorLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeErrorLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeErrorLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeErrorLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeErrorLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeErrorLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '07 writeVerbose' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeVerbose ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeVerbose ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeVerbose ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeVerbose ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeVerbose ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '08 writeVerboseLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeVerboseLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeVerboseLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeVerboseLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeVerboseLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeVerboseLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; } ) ; test ( '05 writes to multiple streams' , ( ) => { terminal . write ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeWarningLine ( 'message 1' , 'message 2' ) ; terminal . writeVerbose ( 'test message' ) ; terminal . writeVerbose ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( Colors . green ( 'message 1' ) ) ; terminal . writeError ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeErrorLine ( 'test message' ) ; terminal . writeVerboseLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeVerboseLine ( 'test message' ) ; terminal . writeWarning ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarning ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeError ( 'message 1' , 'message 2' ) ; terminal . write ( Colors . green ( 'message 1' ) ) ; terminal . writeVerbose ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeErrorLine ( 'message 1' , 'message 2' ) ; terminal . write ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeVerbose ( 'message 1' , 'message 2' ) ; terminal . writeVerboseLine ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeError ( Colors . green ( 'message 1' ) ) ; terminal . writeWarningLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . write ( 'test message' ) ; terminal . writeWarningLine ( 'test message' ) ; terminal . writeVerboseLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeVerboseLine ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeWarning ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( Colors . green ( 'message 1' ) ) ; terminal . write ( 'message 1' , 'message 2' ) ; terminal . writeVerbose ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarning ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( 'test message' ) ; terminal . writeError ( 'test message' ) ; terminal . writeLine ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeError ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarningLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarningLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '02 color disabled' , ( ) => { beforeEach ( ( ) => { provider = new StringBufferTerminalProvider ( false ) ; terminal = new Terminal ( provider ) ; } ) ; describe ( '01 basic terminal functions' , ( ) => { describe ( '01 write' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . write ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . write ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . write ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . write ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . write ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '02 writeLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '03 writeWarning' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeWarning ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeWarning ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeWarning ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeWarning ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeWarning ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '04 writeWarningLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeWarningLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeWarningLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeWarningLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeWarningLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeWarningLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '05 writeError' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeError ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeError ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeError ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeError ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeError ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '06 writeErrorLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeErrorLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeErrorLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeErrorLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeErrorLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeErrorLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '07 writeVerbose' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeVerbose ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeVerbose ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeVerbose ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeVerbose ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeVerbose ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '08 writeVerboseLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeVerboseLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeVerboseLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeVerboseLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeVerboseLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeVerboseLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '09 writeDebug' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeDebug ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeDebug ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeDebug ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeDebug ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeDebug ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; describe ( '10 writeDebugLine' , ( ) => { test ( '01 writes a single message' , ( ) => { terminal . writeDebugLine ( 'test message' ) ; verifyProvider ( ) ; } ) ; test ( '02 writes multiple messages' , ( ) => { terminal . writeDebugLine ( 'message 1' , 'message 2' ) ; verifyProvider ( ) ; } ) ; test ( '03 writes a message with colors' , ( ) => { terminal . writeDebugLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; test ( '04 writes a multiple messages with colors' , ( ) => { terminal . writeDebugLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; verifyProvider ( ) ; } ) ; test ( '05 writes a messages with colors interspersed with non-colored messages' , ( ) => { terminal . writeDebugLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; verifyProvider ( ) ; } ) ; } ) ; } ) ; test ( '05 writes to multiple streams' , ( ) => { terminal . write ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeWarningLine ( 'message 1' , 'message 2' ) ; terminal . writeVerbose ( 'test message' ) ; terminal . writeVerbose ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( Colors . green ( 'message 1' ) ) ; terminal . writeError ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeErrorLine ( 'test message' ) ; terminal . writeVerboseLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeVerboseLine ( 'test message' ) ; terminal . writeWarning ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarning ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeError ( 'message 1' , 'message 2' ) ; terminal . write ( Colors . green ( 'message 1' ) ) ; terminal . writeVerbose ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeErrorLine ( 'message 1' , 'message 2' ) ; terminal . write ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeVerbose ( 'message 1' , 'message 2' ) ; terminal . writeVerboseLine ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeError ( Colors . green ( 'message 1' ) ) ; terminal . writeWarningLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . write ( 'test message' ) ; terminal . writeWarningLine ( 'test message' ) ; terminal . writeVerboseLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeVerboseLine ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeLine ( 'message 1' , Colors . green ( 'message 2' ) , 'message 3' , Colors . red ( 'message 4' ) ) ; terminal . writeWarning ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( Colors . green ( 'message 1' ) ) ; terminal . write ( 'message 1' , 'message 2' ) ; terminal . writeVerbose ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarning ( Colors . green ( 'message 1' ) ) ; terminal . writeLine ( 'test message' ) ; terminal . writeError ( 'test message' ) ; terminal . writeLine ( 'message 1' , 'message 2' ) ; terminal . writeErrorLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeError ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarningLine ( Colors . green ( 'message 1' ) , Colors . red ( 'message 2' ) ) ; terminal . writeWarningLine ( Colors . green ( 'message 1' ) ) ; verifyProvider ( ) ; } ) ; } ) ;