Method: Thor::Invocation#current_command_chain
- Defined in:
- lib/thor/invocation.rb
permalink #current_command_chain ⇒ Object
Make the current command chain accessible with in a Thor-(sub)command
30 31 32 |
# File 'lib/thor/invocation.rb', line 30 def current_command_chain @_invocations.values.flatten.map(&:to_sym) end |