Rename migrate command to import
This commit is contained in:
parent
e210a0603f
commit
9c517c6d7d
|
@ -5,14 +5,12 @@ $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
|
||||||
require 'commander/import'
|
require 'commander/import'
|
||||||
require 'jekyll'
|
require 'jekyll'
|
||||||
|
|
||||||
# Details about Jekyll
|
|
||||||
program :name, 'jekyll'
|
program :name, 'jekyll'
|
||||||
program :version, Jekyll::VERSION
|
program :version, Jekyll::VERSION
|
||||||
program :description, 'Jekyll is a blog-aware, static site generator in Ruby'
|
program :description, 'Jekyll is a blog-aware, static site generator in Ruby'
|
||||||
|
|
||||||
default_command :help
|
default_command :help
|
||||||
|
|
||||||
# Global options available to every command
|
|
||||||
global_option '-s', '--source [DIR]', 'Source directory (defaults to ./)'
|
global_option '-s', '--source [DIR]', 'Source directory (defaults to ./)'
|
||||||
global_option '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)'
|
global_option '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)'
|
||||||
global_option '--safe', 'Safe mode (defaults to false)'
|
global_option '--safe', 'Safe mode (defaults to false)'
|
||||||
|
@ -56,9 +54,9 @@ command :serve do |c|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
command :migrate do |c|
|
command :import do |c|
|
||||||
c.syntax = 'jekyll migrate <platform> [options]'
|
c.syntax = 'jekyll import <platform> [options]'
|
||||||
c.description = 'Migrate your own blog to Jekyll'
|
c.description = 'Import your old blog to Jekyll'
|
||||||
|
|
||||||
c.option '--file', 'File to migrate from'
|
c.option '--file', 'File to migrate from'
|
||||||
c.option '--dbname', 'Database name to migrate from'
|
c.option '--dbname', 'Database name to migrate from'
|
||||||
|
|
Loading…
Reference in New Issue