Module: TicGitNG::Command::Show
- Defined in:
- lib/ticgit-ng/command/show.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
12 13 14 15 |
# File 'lib/ticgit-ng/command/show.rb', line 12 def execute t = tic.ticket_show(args[0]) ticket_show(t, .full ) if t end |
#parser(opts) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ticgit-ng/command/show.rb', line 4 def parser(opts) opts. = "Usage: ti show [--full] [ticid]" opts.on_head( "-f", "--full", "Show long comments in full, don't truncate after the 5th line"){|v| .full= v } end |