Class: PVN::Seek::Command
- Inherits:
-
Command::Command
- Object
- Command::Command
- PVN::Seek::Command
- Defined in:
- lib/pvn/seek/command.rb
Instance Method Summary collapse
Methods inherited from Command::Command
description, example, getdoc, #initialize, matches_subcommand?, optscls, optset, #show_help, subcommands, summary, #to_doc, usage
Constructor Details
This class inherits a constructor from PVN::Command::Command
Instance Method Details
#init(options) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/pvn/seek/command.rb', line 28 def init paths = .paths pattern = paths.shift raise "error: no pattern given to seek command" unless pattern paths = %w{ . } if paths.empty? seektype = .removed ? :removed : :added # can handle only one path for now seekpath = Path.new paths[0] seekpath.seek seektype, pattern, .revision, .color end |