Class: Jirawatch::CLI::Projects
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Jirawatch::CLI::Projects
show all
- Includes:
- AuthenticatedCommand
- Defined in:
- lib/jirawatch/cli/projects.rb
Instance Method Summary
collapse
included
#login, #save_credentials
Instance Method Details
#call ⇒ Object
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
|