def _get_brew_tap_specific_commands(brew_path_prefix):
 commands = []
 brew_taps_path = (brew_path_prefix + TAP_PATH)
 for user in _get_directory_names_only(brew_taps_path):
  taps = _get_directory_names_only((brew_taps_path + ('/%s' % user)))
  taps = (tap for tap in taps if tap.startswith('homebrew-'))
  for tap in taps:
   tap_cmd_path = (brew_taps_path + (TAP_CMD_PATH % (user, tap)))
   if os.path.isdir(tap_cmd_path):
    commands += (name.replace('brew-', '').replace('.rb', '') for name in os.listdir(tap_cmd_path) if _is_brew_tap_cmd_naming(name))
 return commands

def _get_brew_tap_specific_commands ( brew_path_prefix ) : commands = [ ] brew_taps_path = ( brew_path_prefix + TAP_PATH ) for user in _get_directory_names_only ( brew_taps_path ) : taps = _get_directory_names_only ( ( brew_taps_path + ( '/%s' % user ) ) ) taps = ( tap for tap in taps if tap . startswith ( 'homebrew-' ) ) for tap in taps : tap_cmd_path = ( brew_taps_path + ( TAP_CMD_PATH % ( user , tap ) ) ) if os . path . isdir ( tap_cmd_path ) : commands += ( name . replace ( 'brew-' , '' ) . replace ( '.rb' , '' ) for name in os . listdir ( tap_cmd_path ) if _is_brew_tap_cmd_naming ( name ) ) return commands
to get taps specific commands URL#l115 .