module PryByebug

def check_file_context(target, msg = nil)


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