def do(name, query=''):
 try:
  cmd = 'do_{}'.format(name)
  if (cmd in globals()):
   globals()[cmd](query)
  else:
   _out('Invalid command "{}"'.format(name))
 except Exception as e:
  _out('Error: {}'.format(e))

def do ( name , query = '' ) : try : cmd = 'do_{}' . format ( name ) if ( cmd in globals ( ) ) : globals ( ) [ cmd ] ( query ) else : _out ( 'Invalid command "{}"' . format ( name ) ) except Exception as e : _out ( 'Error: {}' . format ( e ) )
execute a ruby command with rbenvs shims from the user or the system cli example: .