Module: Shh::Command::HistoricEntryCommand

Included in:
DiffEntry, ExhumeEntry
Defined in:
lib/shh/command/historic_entry_command.rb

Instance Method Summary collapse

Instance Method Details

#completion(text) ⇒ Object



10
11
12
# File 'lib/shh/command/historic_entry_command.rb', line 10

def completion text
  @repository.map{|entry| entry['name']}.grep(/^#{text}/).sort || []
end

#initialize(repository, io) ⇒ Object



2
3
4
# File 'lib/shh/command/historic_entry_command.rb', line 2

def initialize repository, io
  @repository, @io = repository, io
end

#usageObject



6
7
8
# File 'lib/shh/command/historic_entry_command.rb', line 6

def usage
  "<entry name> <revision>"
end