Sha256: 0678b65f9b8789ee31aa8dafb12f0a0e7e14c83af8652692ecee7a67f6f9ab92
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
require 'commander' module Stylish class Cli include Commander::Methods def run program :name, 'Stylish CLI' program :version, Stylish::VERSION program :description, 'Interface for the Stylish gem' $terminal.wrap_at=160 rescue nil commands = Dir[Stylish.lib_root.join('stylish','cli','**/*.rb')] cli = self commands.each do |file| file = Pathname(file) cli.instance_eval(file.read) end run! end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stylish-0.3.1 | lib/stylish/cli.rb |
stylish-0.3.0 | lib/stylish/cli.rb |