Class: Jirawatch::CLI::Projects

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
AuthenticatedCommand
Defined in:
lib/jirawatch/cli/projects.rb

Instance Method Summary collapse

Methods included from AuthenticatedCommand

included

Methods included from Jira::Provisioning

#login, #save_credentials

Instance Method Details

#callObject



6
7
8
9
10
11
# File 'lib/jirawatch/cli/projects.rb', line 6

def call(*)
  puts "Id\tKey\tName\n\n"
  @jira_client.Project.all.each do |project|
    puts "#{project.id}\t#{project.key}\t#{project.name}"
  end
end