Sha256: 3b78dd23292b457d2d9fe88c956ac4e1c922decfa419cb557728128e5fcfb206

Contents?: true

Size: 878 Bytes

Versions: 2

Compression:

Stored size: 878 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
require 'pivotal_to_pdf'
require 'thor'

class PivotalToPdfApp < Thor
  desc "story STORY_ID", "print a single story specifed by ID into a PDF file. The card will have a color stripe. The color will be green for features, yellow for chores and red for bugs"
  method_option :nocolor, :aliases => "-nc", :desc => "Make the card having no color stripe"
  def story(story_id)
    PivotalToPdf::Main.story story_id, options[:nocolor]
  end

  desc "iteration", "print stories for the current iteration into a PDF file"
  method_option :nocolor, :aliases => "-nc", :desc => "Make the card having no color stripe"
  def iteration(iteration_number = "current")
    PivotalToPdf::Main.iteration iteration_number, options[:nocolor]
  end
end

PivotalToPdfApp.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal_to_pdf-0.9.1 bin/pivotal_to_pdf
pivotal_to_pdf-0.9 bin/pivotal_to_pdf