예제 #1
0
def get_new_command(command):
    packages = get_pkgfile(command.script)

    formatme = shell.and_('{} -S {}', '{}')
    return [
        formatme.format(pacman, package, command.script)
        for package in packages
    ]
예제 #2
0
def get_new_command(command):
    pgr = command.script.split()[-1]

    return replace_command(command, pgr, get_pkgfile(pgr))
예제 #3
0
def match(command):
    return 'not found' in command.output and get_pkgfile(command.script)
예제 #4
0
def match(command):
    return 'not found' in command.stderr and get_pkgfile(command.script)
예제 #5
0
파일: pacman.py 프로젝트: Clpsplug/thefuck
def get_new_command(command):
    packages = get_pkgfile(command.script)

    formatme = shell.and_('{} -S {}', '{}')
    return [formatme.format(pacman, package, command.script)
            for package in packages]
예제 #6
0
파일: pacman.py 프로젝트: Clpsplug/thefuck
def match(command):
    return 'not found' in command.output and get_pkgfile(command.script)
예제 #7
0
파일: pacman.py 프로젝트: MJerty/thefuck
def match(command):
    return 'not found' in command.stderr and get_pkgfile(command.script)