[dev] CLI patch
Jason Rust
jrust at rustyparts.com
Thu May 20 15:56:17 PDT 2004
This is just a small UI patch for the CLI message() method. It makes
the messages look more like the default linux style of having white
brackets.
-Jason
--- /usr/share/pear/Horde/CLI.php 2004-05-20 15:53:43.697996664 -0700
+++ /tmp/CLI.php.orig 2004-05-20 15:53:24.000000000 -0700
@@ -205,16 +205,16 @@
{
switch ($type) {
case 'cli.error':
- $type_message = '[ ' . $this->red('ERROR!') . ' ] ';
+ $type_message = $this->red('[ ERROR! ] ');
break;
case 'cli.warning':
- $type_message = '[ ' . $this->yellow('WARN') . ' ] ';
+ $type_message = $this->yellow('[ WARN ] ');
break;
case 'cli.success':
- $type_message = '[ ' . $this->green('OK') . ' ] ';
+ $type_message = $this->green('[ OK ] ');
break;
case 'cli.message':
- $type_message = '[ ' . $this->blue('INFO') . ' ] ';
+ $type_message = $this->blue('[ INFO ] ');
break;
}
More information about the dev
mailing list