aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/develop/hub_actions.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-11-20 22:53:19 -0500
committerRalph Amissah <ralph@amissah.com>2014-12-08 00:18:16 -0500
commita37a13fbe35be7b9a340520d313ec8a8a576a41f (patch)
tree30cbcfc32c3f0c0484f2242a1e10caed765992dd /lib/sisu/develop/hub_actions.rb
parentd: txt outputs, reorganize, introduce new files (diff)
d: orgmode, add orgmode structure output to txts
Diffstat (limited to 'lib/sisu/develop/hub_actions.rb')
-rw-r--r--lib/sisu/develop/hub_actions.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sisu/develop/hub_actions.rb b/lib/sisu/develop/hub_actions.rb
index 6ae81b70..36a06000 100644
--- a/lib/sisu/develop/hub_actions.rb
+++ b/lib/sisu/develop/hub_actions.rb
@@ -278,6 +278,20 @@ module SiSU_Hub_Actions
end
end
end
+ if @opt.act[:txt_orgmode][:set]==:on #% --orgmode
+ if @opt.f_pths.length > 0
+ require_relative 'txt_orgmode' # txt_orgmode.rb
+ SiSU_Txt_OrgMode::Source.new(@opt).read
+ else
+ msg='orgmode request requires sisu markup files'
+ if (@opt.act[:verbose_plus][:set]==:on \
+ || @opt.act[:maintenance][:set]==:on)
+ SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:yellow).
+ mark(msg)
+ else puts msg
+ end
+ end
+ end
end
def html?
if @opt.act[:html][:set]==:on #% --html, -h