Class: AppMap::Command::Index
- Defined in:
- lib/appmap/command/index.rb
Constant Summary
Constants inherited from NodeCLI
Instance Attribute Summary
Attributes inherited from NodeCLI
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
.run ⇒ Object
8 9 10 11 |
# File 'lib/appmap/command/index.rb', line 8 def run command = Index.new(verbose: ENV['DEBUG'] == 'true') command.index(ARGV) end |
Instance Method Details
#index(arguments) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/appmap/command/index.rb', line 14 def index(arguments) detect_nodejs arguments.unshift 'index' arguments.unshift APPMAP_JS arguments.unshift 'npx' exec(*arguments) end |