]> git.donarmstrong.com Git - biopieces.git/commitdiff
addid term colors to list_genomes
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 23 Jul 2009 11:16:20 +0000 (11:16 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 23 Jul 2009 11:16:20 +0000 (11:16 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@581 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/list_genomes
code_perl/Maasha/Gwiki.pm

index f5e6d4d8e4ec1f27675127829e28af25a5ed97b6..accaffe9ca1e4953d8e3e57caa17a54225aa172f 100755 (executable)
@@ -28,6 +28,7 @@
 
 use warnings;
 use strict;
+use Term::ANSIColor;
 use Maasha::Common;
 use Maasha::Biopieces;
 
@@ -71,9 +72,9 @@ foreach $genome ( sort keys %hash )
     foreach $format ( sort keys %found )
     {
         if ( exists $hash{ $genome }{ $format } ) {
-            push @row, "yes";
+            push @row, colored( "yes", "green" );
         } else {
-            push @row, "no";
+            push @row, colored( "no", "red" );
         }
     }
 
index 055df09d889d83bb25e2fce2081663b975730b3e..b37eea40e00509d89ab6086850edc57f02361601 100644 (file)
@@ -285,7 +285,7 @@ sub text_bold
     my ( $txt,
        ) = @_;
 
-    return colored ( $txt, "bold" );
+    return colored( $txt, "bold" );
 }
 
 
@@ -294,7 +294,7 @@ sub text_underline
     my ( $txt,
        ) = @_;
 
-    return colored ( $txt, "underline" );
+    return colored( $txt, "underline" );
 }