Sha256: 252a19fd44b8946f179aceabd99e73ded8dc98b74bde55472764a8cc5bd70939

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

module GetToWork
  class CLI < Thor
    desc "bootstrap", "creates .gtw configuration for your current working directory"
    def bootstrap
      GetToWork::Command::Bootstrap.run
    end

    desc "start <Pivotal Tracker Story ID or URL>", "start working on a pivotal tracker story"
    def start(pt_id = nil)
      GetToWork::Command::Start.run(pt_id: pt_id)
    end

    desc "stop", "#stop working on your current story"
    def stop
      GetToWork::Command::Stop.run
    end

    desc "last_story", "returns the id of the last story started"
    def last_story
      GetToWork::Command::LastStory.run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
get_to_work-0.1.5 lib/get_to_work/cli.rb
get_to_work-0.1.4 lib/get_to_work/cli.rb
get_to_work-0.1.3 lib/get_to_work/cli.rb
get_to_work-0.1.2 lib/get_to_work/cli.rb