X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Flist_genomes;h=accaffe9ca1e4953d8e3e57caa17a54225aa172f;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=b0e77a648cc045fa2e7be8b883f13c683e95df09;hpb=9854397f83abe8d5a8c614b799ef3107d3f85f80;p=biopieces.git diff --git a/bp_bin/list_genomes b/bp_bin/list_genomes index b0e77a6..accaffe 100755 --- a/bp_bin/list_genomes +++ b/bp_bin/list_genomes @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,7 +26,9 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; +use Term::ANSIColor; use Maasha::Common; use Maasha::Biopieces; @@ -34,7 +36,7 @@ use Maasha::Biopieces; # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -my ( $run_time_beg, $run_time_end, $options, @genomes, $genome, @formats, $format, %hash, %found, @row ); +my ( $options, @genomes, $genome, @formats, $format, %hash, %found, @row ); $options = Maasha::Biopieces::parse_options(); @@ -70,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" ); } } @@ -85,16 +87,13 @@ foreach $genome ( sort keys %hash ) BEGIN { - $run_time_beg = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::log_biopiece(); + Maasha::Biopieces::status_set(); } + END { - $run_time_end = Maasha::Biopieces::run_time(); - - Maasha::Biopieces::run_time_print( $run_time_beg, $run_time_end, $options ); + Maasha::Biopieces::status_log(); } @@ -102,5 +101,3 @@ END __END__ - -