lib/jekyll-import.rb in jekyll-import-0.1.0 vs lib/jekyll-import.rb in jekyll-import-0.2.0
- old
+ new
@@ -4,14 +4,13 @@
require 'jekyll/stevenson'
require 'colorator'
require 'jekyll-import/importer'
require 'jekyll-import/importers'
+require 'jekyll-import/util'
module JekyllImport
- VERSION = '0.1.0'
-
def self.logger
@logger ||= Jekyll::Stevenson.new
end
# Public: Add the subcommands for each importer
@@ -23,10 +22,10 @@
commands = []
JekyllImport::Importer.subclasses.each do |importer|
name = importer.to_s.split("::").last.downcase
commands << name
cmd.command(name.to_sym) do |c|
- c.syntax "jekyll import #{name} [options]"
+ c.syntax "#{name} [options]"
importer.specify_options(c)
c.action do |_, options|
importer.run(options)
end
end