module Thor::Invocation

def current_command_chain

Make the current command chain accessible with in a Thor-(sub)command
def current_command_chain
  @_invocations.values.flatten.map(&:to_sym)
end