Пример #1
0
 public static function warning($text)
 {
     $return = "\n";
     $return .= CLI::color($text, 'white', 'yellow') . "\n";
     $return .= "\n";
     return $return;
 }
Пример #2
0
<?php 
    echo CLI::color(__('Options'), 'light_gray');
    ?>
-------------------------------------------------
<?php 
    foreach ($kohana_cli_task['options'] as $option => $default) {
        echo CLI::color($option, 'light_gray');
        $key = $name . ' ' . $option;
        $info = __($key);
        echo $key == $info ? '' : ' - ' . $info;
        echo ': ' . var_export($default, TRUE) . PHP_EOL;
    }
    ?>

<?php 
    echo CLI::color(__('Show task manual'), 'light_gray');
    ?>
-------------------------------------------------
    php <?php 
    echo CLI::script();
    ?>
 --task=manual --name=<?php 
    echo $kohana_cli_task['name'];
    ?>

<?php 
    if (Kohana::$caching) {
        Fragment::save();
    }
}