global

def check_file_context

Ensures that a command is executed in a local file context.
def check_file_context
  unless PryNav.check_file_context(target)
    raise Pry::CommandError, 'Cannot find local context. Did you use `binding.pry`?'
  end
end