diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-05-29 19:33:25 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-05-29 19:34:37 -0400 |
commit | 9ac9918c3e656d5c279e74f2d35893de2bc876ed (patch) | |
tree | a34b531502ecda65ab5b83f1be90848ed39e4367 /lib/sisu/v5/sysenv.rb | |
parent | v4 v5: version & changelog (diff) |
v4 v5: help, interactive help, out of date, removed
* sysenv, version info moved here from interactive help
Diffstat (limited to 'lib/sisu/v5/sysenv.rb')
-rw-r--r-- | lib/sisu/v5/sysenv.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/sisu/v5/sysenv.rb b/lib/sisu/v5/sysenv.rb index 25984397..3df0e612 100644 --- a/lib/sisu/v5/sysenv.rb +++ b/lib/sisu/v5/sysenv.rb @@ -3548,6 +3548,38 @@ WOK %x{ruby -v}.strip end end + class InfoAbout + def initialize(color='') + @color=color + end + def sisu_version + version=SiSU_Env::InfoVersion.instance.get_version + rb_ver=SiSU_Env::InfoVersion.instance.rbversion + if version[:version] + opt_cmd=if defined? @color.cmd \ + and @color.cmd =~/[ck]/ + @color.cmd + else '-v' + end + SiSU_Screen::Ansi.new(opt_cmd,version[:project],version[:version],version[:date_stamp],version[:date],rb_ver).version + else puts 'SiSU version information not available' + end + end + def sisu_about + puts <<-WOK + sisu: documents; markup, structuring, publishing in multiple standard formats, & search + most (not all) useful commands (are made in a directory containing a sisu markup file &) take the form: + sisu [action(s)] [filename(s)] + where filename refers to a valid sisu marked up file, e.g.: + cd /usr/share/doc/sisu/markup-samples/sisu_manual + sisu --html --verbose sisu_commands.sst + sisu --txt --html --epub --odt --pdf --sqlite --manpage --texinfo --concordance --qrcode --verbose sisu.ssm + cd - + See output produced, or see man pages: man sisu + <http://www.sisudoc.org/> <http://www.jus.uio.no/sisu/> + WOK + end + end class InfoFile <InfoEnv #todo unify with FileOp def initialize(fns) begin |