Sha256: 33c1d24b68cc40111d59316875c8e87d75fdb38f0efd1b1d54bbe627851627f5
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
module Polytrix module Command class RunDoc < Thor::Group class_option :format, aliases: '-f', enum: %w(markdown rst), default: 'markdown', desc: 'The documentation input format' def rundoc files = args # Logging.mdc['command'] = 'rundoc' if files.empty? # help('code2doc') abort 'No FILES were specified, check usage above' end files.each do |file| target_file_name = File.basename(file, File.extname(file)) + ".#{options[:format]}" target_file = File.join(options[:target_dir], target_file_name) say_status 'polytrix:code2doc', "Converting #{file} to #{target_file}" Polytrix::DocumentationExecutor.new.execute file end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.2 | lib/polytrix/command/rundoc.rb |
polytrix-0.1.1 | lib/polytrix/command/rundoc.rb |
polytrix-0.1.0 | lib/polytrix/command/rundoc.rb |