Sha256: 0a8286d74675ec3180d095e0f220aa826bf696c963b5a8782a5ac94cd1654629

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'

require 'rubygems'
require 'gli'
require 'docurium'
require 'docurium/cli'

include GLI

version Docurium::Version

desc 'Generate HTML documentation'
long_desc 'Generate HTML docs from a Docurium config file'
command :doc do |c|
  c.action do |global_options,options,args|
    file = args.first
    Docurium::CLI.doc(file, options)
  end
end

pre { |global,command,options,args| true }

post { |global,command,options,args| true }

on_error do |exception|
  puts exception
  puts exception.backtrace
end

exit GLI.run(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docurium-0.0.1 bin/cm