Class: Jirify::Subcommands::Projects
- Inherits:
-
Thor
- Object
- Thor
- Jirify::Subcommands::Projects
- Defined in:
- lib/jirify/cli/project.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/jirify/cli/project.rb', line 7 def list projects = Models::ProjectList.all longest_key = projects.keys.map(&:size).max projects.each do |project| key = "#{project.key}:".ljust(longest_key + 1) say "#{key} #{project.name}" end end |