Mercurial > hg > Members > atton > pmux
changeset 12:af75f1f247e4
Support --left <revision> --right <revision> option in debugger command
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 31 Jul 2014 13:52:32 +0900 |
parents | 6b43ee6c3f39 |
children | 272a0ce389f3 |
files | lib/pmuxinator/cli.rb |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/pmuxinator/cli.rb Tue Jul 22 10:42:50 2014 +0900 +++ b/lib/pmuxinator/cli.rb Thu Jul 31 13:52:32 2014 +0900 @@ -146,8 +146,18 @@ desc 'debugger', 'Launch parallel debugger' + option :left + option :right def debugger + puts options[:left] + if options[:left] && options[:left].to_i.nonzero? + Pmuxinator::Config.class_eval "def self.left_panel_revision_number; #{options[:left]} end" + end + if options[:right] && options[:right].to_i.nonzero? + Pmuxinator::Config.class_eval "def self.right_panel_revision_number; #{options[:right]} end" + end + project = Pmuxinator::Config.validate('debugger') if project.deprecations.any?