Method: Thor::Invocation#current_command_chain

Defined in:
lib/thor/invocation.rb

#current_command_chainObject

Make the current command chain accessible with in a Thor-(sub)command

[View source]

30
31
32
# File 'lib/thor/invocation.rb', line 30

def current_command_chain
  @_invocations.values.flatten.map(&:to_sym)
end