Class: RedmineCLI::Subcommands::Issue

Inherits:
Thor
  • Object
show all
Extended by:
Helpers::Output
Includes:
Helpers::Output, RedmineRest
Defined in:
lib/redmine_cli/subcommands/issue.rb

Overview

All methods for working with issues, e.g. listing, linking, updating…

Instance Method Summary collapse

Methods included from Helpers::Output

erb, message

Instance Method Details

#list(id = 'current') ⇒ Object



16
17
18
19
20
# File 'lib/redmine_cli/subcommands/issue.rb', line 16

def list(id = 'current')
  fail('new config') if Config.new?

  puts erb('issue/list', issues: Models::User.find(id).issues)
end