#!/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