Add apt_list_upgradable rule (#732)
This helps you run `apt list --upgradable` after `apt update`, as it suggests.
This commit is contained in:
committed by
Vladimir Iakovlev
parent
97123dbf73
commit
d582159670
@@ -0,0 +1,15 @@
|
||||
from thefuck.specific.apt import apt_available
|
||||
from thefuck.specific.sudo import sudo_support
|
||||
from thefuck.utils import for_app
|
||||
|
||||
enabled_by_default = apt_available
|
||||
|
||||
|
||||
@sudo_support
|
||||
@for_app('apt')
|
||||
def match(command):
|
||||
return "Run 'apt list --upgradable' to see them." in command.output
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return 'apt list --upgradable'
|
||||
Reference in New Issue
Block a user