module Bundler::Thor::Invocation

def current_command_chain

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