def _brew_commands(): brew_path_prefix = get_brew_path_prefix() if brew_path_prefix: try: return _get_brew_commands(brew_path_prefix) + _get_brew_tap_specific_commands(brew_path_prefix) except OSError: pass # Failback commands for testing (Based on Homebrew 0.9.5) return [ "info", "home", "options", "install", "uninstall", "search", "list", "update", "upgrade", "pin", "unpin", "doctor", "create", "edit", ]
def _get_formulas(): # Formulas are based on each local system's status try: brew_path_prefix = get_brew_path_prefix() brew_formula_path = brew_path_prefix + '/Library/Formula' for file_name in os.listdir(brew_formula_path): if file_name.endswith('.rb'): yield file_name[:-3] except: pass
def _brew_commands(): brew_path_prefix = get_brew_path_prefix() if brew_path_prefix: try: return (_get_brew_commands(brew_path_prefix) + _get_brew_tap_specific_commands(brew_path_prefix)) except OSError: pass # Failback commands for testing (Based on Homebrew 0.9.5) return ['info', 'home', 'options', 'install', 'uninstall', 'search', 'list', 'update', 'upgrade', 'pin', 'unpin', 'doctor', 'create', 'edit']
def _brew_commands(): brew_path_prefix = get_brew_path_prefix() if brew_path_prefix: try: return _get_brew_commands(brew_path_prefix) \ + _get_brew_tap_specific_commands(brew_path_prefix) except OSError: pass # Failback commands for testing (Based on Homebrew 0.9.5) return [ 'info', 'home', 'options', 'install', 'uninstall', 'search', 'list', 'update', 'upgrade', 'pin', 'unpin', 'doctor', 'create', 'edit' ]