Development

Changeset 1942

You must first sign up to be able to contribute.

Changeset 1942

Show
Ignore:
Timestamp:
09/05/06 10:28:57 (2 years ago)
Author:
fabien
Message:

pake: added a new pake_echo_comment() function

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/lib/pake/pakeColor.class.php

    r1845 r1942  
    6868} 
    6969 
    70 pakeColor::style('ERROR', array('bg' => 'red', 'fg' => 'white', 'bold' => true)); 
    71 pakeColor::style('INFO',  array('fg' => 'green', 'bold' => true)); 
     70pakeColor::style('ERROR',    array('bg' => 'red', 'fg' => 'white', 'bold' => true)); 
     71pakeColor::style('INFO',     array('fg' => 'green', 'bold' => true)); 
     72pakeColor::style('COMMENT',  array('fg' => 'yellow')); 
  • tools/pake/trunk/lib/pake/pakeFunction.php

    r1901 r1942  
    373373} 
    374374 
     375function pake_echo_comment($text) 
     376{ 
     377  if (pakeApp::get_instance()->get_verbose()) 
     378  { 
     379    echo sprintf(pakeColor::colorize('   # %s', 'COMMENT'), $text)."\n"; 
     380  } 
     381} 
     382 
    375383// register our default exception handler 
    376384function pake_exception_default_handler($exception)