Class: Gl::Issues
- Inherits:
-
Thor
- Object
- Thor
- Gl::Issues
- Defined in:
- lib/gl/cli/issues.rb
Instance Method Summary collapse
- #label(label) ⇒ Object
- #list(project = nil) ⇒ Object
- #open(id = nil) ⇒ Object
- #unlabel(label) ⇒ Object
Instance Method Details
#label(label) ⇒ Object
24 25 26 |
# File 'lib/gl/cli/issues.rb', line 24 def label(label) label_action(label) end |
#list(project = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gl/cli/issues.rb', line 7 def list(project = nil) if [:i] id = issue_dialogue(project) Gl.open_in_browser("#{Gl.current_project}/issues/#{id}") else table = TTY::Table.new(%w[IID Author Title], issues_list) puts table.render(:ascii, padding: [0, 1]) end end |
#open(id = nil) ⇒ Object
19 20 21 |
# File 'lib/gl/cli/issues.rb', line 19 def open(id = nil) Gl.open_in_browser("#{Gl.current_project}/issues/#{id}") end |
#unlabel(label) ⇒ Object
29 30 31 |
# File 'lib/gl/cli/issues.rb', line 29 def unlabel(label) label_action(label) end |