Sha256: 5dbf61c0ec551b54b0fde72ba27ec47ff000fc6940da4434aeb1a970dd8a3aa9

Contents?: true

Size: 977 Bytes

Versions: 8

Compression:

Stored size: 977 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

  desc "label LABEL", "print stories for the label specified into a PDF file"
  def label(label_text)
    PivotalToPdf::Main.label label_text
  end

end

PivotalToPdfApp.start

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pivotal_to_pdf-1.4.0 bin/pivotal_to_pdf
pivotal_to_pdf-1.3.4 bin/pivotal_to_pdf
pivotal_to_pdf-1.3.3 bin/pivotal_to_pdf
pivotal_to_pdf-1.3.2 bin/pivotal_to_pdf
pivotal_to_pdf-1.3.1 bin/pivotal_to_pdf
pivotal_to_pdf-1.3.0 bin/pivotal_to_pdf
pivotal_to_pdf-1.2.0 bin/pivotal_to_pdf
pivotal_to_pdf-1.1.0 bin/pivotal_to_pdf