Class: AppMap::Command::Inspect

Inherits:
NodeCLI show all
Defined in:
lib/appmap/command/inspect.rb

Constant Summary

Constants inherited from NodeCLI

NodeCLI::APPMAP_JS

Instance Attribute Summary

Attributes inherited from NodeCLI

#appmap_dir, #verbose

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NodeCLI

#command, #detect_nodejs, #index_appmaps, #initialize

Constructor Details

This class inherits a constructor from AppMap::NodeCLI

Class Method Details

.runObject



8
9
10
11
# File 'lib/appmap/command/inspect.rb', line 8

def run
  command = Inspect.new(verbose: ENV['DEBUG'] == 'true')
  command.inspect(ARGV)
end

Instance Method Details

#inspect(arguments) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/appmap/command/inspect.rb', line 14

def inspect(arguments)
  detect_nodejs

  arguments.unshift 'inspect'
  arguments.unshift APPMAP_JS
  arguments.unshift 'npx'

  exec(*arguments)
end