Sha256: 25dbde7d21af27c9807bea69d91d7de91343dae4278c36a88dc46b0e7ab6565e
Contents?: true
Size: 841 Bytes
Versions: 4
Compression:
Stored size: 841 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 desc 'Generate Docurium config file template' long_desc 'Generate Docurium config file template' command :gen do |c| c.action do |global_options,options,args| file = args.first || 'api.docurium' Docurium::CLI.gen(file) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
docurium-0.0.5 | bin/cm |
docurium-0.0.4 | bin/cm |
docurium-0.0.3 | bin/cm |
docurium-0.0.2 | bin/cm |