Sha256: f9576dfa07dda4a9ee64dd8f7a816d233d813b5a351fa4a5d187b9330f38a7d5
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
require 'peekj' require 'thor' module Peekj class CLI < Thor desc "summary ITEM", "Prints issue summary" def summary(issue_key) issue = JiraApi.get_issue(issue_key) say(issue.summary) end desc "login", "Enter login credentials" def login Credentials::KEYS.each do |credential_key| credential_value = ask("#{credential_key}:") Credentials.send("#{credential_key}=", credential_value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peekj-0.1.0 | lib/peekj/cli.rb |