Class: Hearken::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/hearken/cli.rb

Instance Method Summary collapse

Instance Method Details

#consoleObject



19
20
21
# File 'lib/hearken/cli.rb', line 19

def console
  Hearken::Console.new.push
end

#index(directory) ⇒ Object



14
15
16
# File 'lib/hearken/cli.rb', line 14

def index directory
  Hearken::Indexing::Indexer.new(directory).execute
end

#versionObject



9
10
11
# File 'lib/hearken/cli.rb', line 9

def version
  puts "Current version is "+Hearken::VERSION
end