Added command to primary binary.

This commit is contained in:
Parker Moore 2013-01-16 21:19:15 -05:00
parent 2bc04e4a60
commit f3856a444a
1 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,15 @@ global_option '--safe', 'Safe mode (defaults to false)'
global_option '--plugins', 'Plugins directory (defaults to ./_plugins)' global_option '--plugins', 'Plugins directory (defaults to ./_plugins)'
global_option '--layouts', 'Layouts directory (defaults to ./_layouts)' global_option '--layouts', 'Layouts directory (defaults to ./_layouts)'
command :new do |c|
c.syntax = 'jekyll new PATH'
c.description = 'Creates a new Jekyll site scaffold in PATH'
c.action do |args, options|
Jekyll::NewCommand.process(args)
end
end
command :build do |c| command :build do |c|
c.syntax = 'jekyll build [options]' c.syntax = 'jekyll build [options]'
c.description = 'Build your site with the option of auto-renegeration' c.description = 'Build your site with the option of auto-renegeration'