Sha256: 98127bf489bd9db9f8cf0106ce4b15d4ae729f0e997de5f943929b328bb7017c

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

module Fontist
  class ImportCLI < Thor
    desc "macos", "Create formula for on-demand macOS fonts"
    option :name, desc: "Example: Big Sur", required: true
    option :fonts_link,
           desc: "A link to a list of available fonts in a current OS",
           required: true
    option :formulas_path, type: :string, desc: "Path to formulas"
    def macos
      if options[:formulas_path]
        Fontist.formulas_path = Pathname.new(options[:formulas_path])
      end

      require_relative "import/macos"
      Import::Macos.new(options).call
      CLI::STATUS_SUCCESS
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fontist-1.13.1 lib/fontist/import_cli.rb
fontist-1.13.0 lib/fontist/import_cli.rb
fontist-1.12.0 lib/fontist/import_cli.rb