Sha256: dfdc277f09975143b709a66be63a19b79098c0cb0067a549a4b73f30de476308

Contents?: true

Size: 827 Bytes

Versions: 1

Compression:

Stored size: 827 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"
  def story(story_id)
    PivotalToPdf::Main.story story_id
  end

  desc "current_iteration", "print stories for the current iteration into a PDF file"
  def current_iteration
    PivotalToPdf::Main.current_iteration
  end

  desc "iteration ITERATION-NUMBER", "print all the stories for the iteration specified into a PDF file"
  def iteration(iteration_number)
    PivotalToPdf::Main.iteration iteration_number
  end
end

PivotalToPdfApp.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pivotal_to_pdf-1.0.0 bin/pivotal_to_pdf