Sha256: e4eab6b7ac3f15b4fdf234d5f03ec03a935e12881327e0fac1e62c2e3f260b54
Contents?: true
Size: 1.65 KB
Versions: 4
Compression:
Stored size: 1.65 KB
Contents
#!/usr/bin/env ruby require 'hyhyhy' require 'rubygems' require 'commander/import' program :name, 'hyhyhy' program :version, Hyhyhy::VERSION program :description, Hyhyhy::DESCRIPTION program :help, 'Author', 'M. A. Czyzewski <maciejanthonyczyzewski@gmail.com>' Hyhyhy.initialize command :new do |c| c.syntax = 'hyhyhy new' c.description = 'Forms the skeleton of a new presentation.' c.option '--title STRING', String, 'Title of presentation.' c.option '--description STRING', String, 'A brief summary.' c.option '--author STRING', String, 'Who did this miracle.' c.action do |args, options| options.default :title => nil options.default :description => nil options.default :author => nil Hyhyhy.new(args, options) end end command :build do |c| c.syntax = 'hyhyhy build PATH' c.description = 'Splice all your slides/sections in one presentation.' c.option '--source STRING', String, 'Source directory (defaults to ./)' c.option '--destination STRING', String, 'Destination directory (defaults to ./_build)' c.option '--serve', 'Runs with the "serve" command.' c.option '--watch', 'Enable auto-regeneration of the site when files are modified.' c.action do |args, options| options.default :serve => false options.default :watch => false options.default :source => './' options.default :destination => './_build' Hyhyhy.build(args, options) end end command :serve do |c| c.syntax = 'hyhyhy serve PATH' c.description = 'Serve your presentation locally.' c.option '--open', 'Launch in default browser.' c.action do |args, options| options.default :open => false Hyhyhy.serve(args, options) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hyhyhy-0.0.7 | bin/hyhyhy |
hyhyhy-0.0.6 | bin/hyhyhy |
hyhyhy-0.0.5 | bin/hyhyhy |
hyhyhy-0.0.4 | bin/hyhyhy |