Sha256: 30257c273bdc3272aa582e1b9130d98cc006ecaf8cb97a2c7b5d7543dc09290e
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true STDOUT.sync = true $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require 'jekyll-import' require 'jekyll/commands/import' require 'mercenary' Mercenary.program(:jekyll_import) do |p| p.version JekyllImport::VERSION p.description "Import from various blogs to Jekyll format." p.syntax "jekyll-import <blog_engine> [options]" # Create all the subcommands for the importers. JekyllImport.add_importer_commands(p) p.action do |args, _| if args.empty? Jekyll.logger.error "An importer subcommand is required." puts p abort else subcommand = args.first unless p.has_command? subcommand Jekyll.logger.abort_with "fatal: 'jekyll-import #{args.first}'" \ " could not be found." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-import-0.23.0 | exe/jekyll-import |