class Thor::NestedContext

def enter

def enter
  push
  yield
ensure
  pop
end

def entered?

def entered?
  @depth > 0
end

def initialize

def initialize
  @depth = 0
end

def pop

def pop
  @depth -= 1
end

def push

def push
  @depth += 1
end