Sha256: 775c4fc7e4fcaac8938bf2c2a1eb24b20c76392a15097939991f23debbca76d3
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
require "thor" require "gh/cards" module Gh module Cards class CLI < Thor class_option :template, :type => :string, :aliases => "-t", :desc => "Template name or path to erb template", :default => "default" class_option :directory, :type => :string, :aliases => "-d", :desc => "The directory to use for output", :default => ".gh-cards" class_option :repo, :type => :string, :aliases => "-r", :desc => "The org/repo you want to generate cards for (autodetected when inside a repo)" desc "generate", "Generate your Github issue cards HTML file" def generate Gh::Cards.generate options[:template], options[:directory], options[:repo] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gh-cards-0.2.0 | lib/gh/cards/cli.rb |
gh-cards-0.1.0 | lib/gh/cards/cli.rb |