示例#1
0
def get_new_command(command, settings):
    packages = get_pkgfile(command.script)

    formatme = shells.and_('{} -S {}', '{}')
    return [
        formatme.format(pacman, package, command.script)
        for package in packages
    ]
示例#2
0
def match(command, settings):
    return 'not found' in command.stderr and get_pkgfile(command.script)
示例#3
0
文件: pacman.py 项目: ngphat/thefuck
def match(command, settings):
    return 'not found' in command.stderr and get_pkgfile(command.script)
示例#4
0
文件: pacman.py 项目: ngphat/thefuck
def get_new_command(command, settings):
    packages = get_pkgfile(command.script)

    formatme = shells.and_('{} -S {}', '{}')
    return [formatme.format(pacman, package, command.script)
            for package in packages]
示例#5
0
def get_new_command(command, settings):
    pgr = command.script.split()[-1]

    return replace_command(command, pgr, get_pkgfile(pgr))