Class: Contextizer::CLI

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

Constant Summary collapse

RENDERER_MAPPING =
{
  "markdown" => Renderers::Markdown
}.freeze

Instance Method Summary collapse

Instance Method Details

#extract(target_path = ".") ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/contextizer/cli.rb', line 25

def extract(target_path = ".")
  if options[:git_url]
    RemoteRepoHandler.handle(options[:git_url]) do |remote_path|
      run_extraction(remote_path)
    end
  else
    run_extraction(target_path)
  end
end