File: show.rb

package info (click to toggle)
ticgit 1.0.2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ruby: 2,848; sh: 124; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module TicGitNG
  module Command
    module Show
      def parser(opts)
        opts.banner = "Usage: ti show [--full] [ticid]"
        opts.on_head(
          "-f", "--full", "Show long comments in full, don't truncate after the 5th line"){|v|
          options.full= v
        }
      end

      def execute
        t = tic.ticket_show(args[0])
        ticket_show(t, options.full ) if t
      end
    end
  end
end