Sha256: 86f4df5b5f158af8c73404c40f034275d5d00b30676b784f298863ffb11acd89

Contents?: true

Size: 720 Bytes

Versions: 13

Compression:

Stored size: 720 Bytes

Contents

module Fontist
  class ImportCLI < Thor
    include CLI::ClassOptions

    desc "google", "Import Google fonts"
    def google
      handle_class_options(options)
      require "fontist/import/google_import"
      Fontist::Import::GoogleImport.new.call
      CLI::STATUS_SUCCESS
    end

    desc "macos", "Create formula for on-demand macOS fonts"
    def macos
      handle_class_options(options)
      require_relative "import/macos"
      Import::Macos.new.call
      CLI::STATUS_SUCCESS
    end

    desc "sil", "Import formulas from SIL"
    def sil
      handle_class_options(options)
      require "fontist/import/sil_import"
      Fontist::Import::SilImport.new.call
      CLI::STATUS_SUCCESS
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fontist-1.17.1 lib/fontist/import_cli.rb
fontist-1.17.0 lib/fontist/import_cli.rb
fontist-1.16.0 lib/fontist/import_cli.rb
fontist-1.15.2 lib/fontist/import_cli.rb
fontist-1.15.1 lib/fontist/import_cli.rb
fontist-1.15.0 lib/fontist/import_cli.rb
fontist-1.14.6 lib/fontist/import_cli.rb
fontist-1.14.5 lib/fontist/import_cli.rb
fontist-1.14.4 lib/fontist/import_cli.rb
fontist-1.14.3 lib/fontist/import_cli.rb
fontist-1.14.2 lib/fontist/import_cli.rb
fontist-1.14.1 lib/fontist/import_cli.rb
fontist-1.14.0 lib/fontist/import_cli.rb