File: milestone.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 (26 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module TicGitNG
  module Command
    # tic milestone
    # tic milestone migration1 (list tickets)
    # tic milestone -n migration1 3/4/08 (new milestone)
    # tic milestone -a {1} (add ticket to milestone)
    # tic milestone -d migration1 (delete)
    module Milestone
      def parser(opts)
        opts.banner = "Usage: ti milestone [milestone_name] [options] [date]"

        opts.on_head(
          "-n MILESTONE", "--new MILESTONE",
          "Add a new milestone to this project"){|v| options.new = v }

        opts.on_head(
          "-a TICKET", "--new TICKET",
          "Add a ticket to this milestone"){|v| options.add = v }

        opts.on_head(
          "-d MILESTONE", "--delete MILESTONE",
          "Remove a milestone"){|v| options.remove = v }
      end
    end
  end
end