diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-05-01 01:44:04 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-05-01 01:44:04 -0400 |
commit | d9763aebaf71cf9629fdcf3c0e8818a1edb2b528 (patch) | |
tree | d18f7b2784887095d96d36038d1c95402d507b78 /lib/sisu/v2/digests.rb | |
parent | param_identify_markup, identify version 2 markup (diff) |
reduce screen output unless some verbose flag (such as -v) is used
Diffstat (limited to 'lib/sisu/v2/digests.rb')
-rw-r--r-- | lib/sisu/v2/digests.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sisu/v2/digests.rb b/lib/sisu/v2/digests.rb index 59893aee..3f1c5445 100644 --- a/lib/sisu/v2/digests.rb +++ b/lib/sisu/v2/digests.rb @@ -75,10 +75,13 @@ module SiSU_Digest_view begin @env,@md,@dal_array=@particulars.env,@particulars.md,@particulars.dal_array tool=if @opt.cmd =~/[MVv]/; "#{@env.program.text_editor} #{@env.path.output_tell}/#{@md.fnb}/#{@md.fn[:digest]}" - else '' + else @opt.fns + end + unless @opt.cmd =~/q/ + @opt.cmd=~/[MVvz]/ \ + ? SiSU_Screen::Ansi.new(@opt.cmd,"Document #{@dg} Digests",tool).green_hi_blue \ + : SiSU_Screen::Ansi.new(@opt.cmd,"Document #{@dg} Digests",tool).green_title_hi end - tell=SiSU_Screen::Ansi.new(@opt.cmd,"Document #{@dg} Digests",tool) - tell.green_hi_blue unless @opt.cmd =~/q/ tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/#{@md.fnb}/#{@md.fn[:digest]}") tell.flow if @opt.cmd =~/[MV]/ my_make=SiSU_Env::Create_file.new(@opt.cmd,@opt.fns) |