Method: Knifecmd#found_shortcut

Defined in:
lib/kknife/knifecmd.rb

#found_shortcut(shortcut) ⇒ Object

If the Command lookup hits a shortcut, adjust local variables to match



174
175
176
177
178
179
# File 'lib/kknife/knifecmd.rb', line 174

def found_shortcut( shortcut )
  dbg 'found_shortcut b4 ', shortcut.join(','), '|', @cmd_left.join(',')
  @cmd_left.shift
  @cmd_left.unshift *shortcut
  dbg 'found_shortcut aft', shortcut.join(','), '|', @cmd_left.join(',')
end