Class: BoxCli::InfoCommand

Inherits:
BoxCommand show all
Defined in:
lib/box_cli/info_command.rb

Constant Summary

Constants inherited from Command

Command::GLOBAL_OPTION_NAMES

Instance Attribute Summary

Attributes inherited from Command

#args, #global_options, #local_options

Instance Method Summary collapse

Methods inherited from BoxCommand

#initialize, #wrapper

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from BoxCli::BoxCommand

Instance Method Details

#callObject



3
4
5
6
7
8
# File 'lib/box_cli/info_command.rb', line 3

def call
  path, = @args
  path ||= '.'
  info = wrapper.info(path)
  Displayer.new.display info.extend(HashToPretty).to_pretty
end