Sha256: c3b336a5fbd033a6d0953b85c104d8184209115162aeca6d69a365d5669dbb82
Contents?: true
Size: 979 Bytes
Versions: 7
Compression:
Stored size: 979 Bytes
Contents
require 'thor' require 'fontcustom' module Fontcustom class CLI < Thor # duplicated from Fontcustom::Generator so as to also appear under `fontcustom help` command class_option :output, :aliases => '-o', :desc => 'Specify an output directory. Default: $DIR/fontcustom' class_option :name, :aliases => '-n', :desc => 'Specify a font name. This will be used in the generated fonts and CSS. Default: fontcustom' class_option :nohash, :type => :boolean, :default => false, :desc => 'Disable filename hashes. Default: false' desc 'compile DIR [options]', 'Generates webfonts and CSS from *.svg and *.eps files in DIR.' def compile(*args) # workaround to pass arguments from one Thor class to another ARGV.shift Fontcustom.compile(*ARGV) end desc 'watch DIR [options]', 'Watches DIR for changes and regenerates webfonts and CSS automatically.' def watch(*args) ARGV.shift Fontcustom.watch(*ARGV) end end end
Version data entries
7 entries across 7 versions & 2 rubygems