new_rule_created

This commit is contained in:
silambarasa 2023-11-19 16:57:40 +05:30
parent 62e0767c50
commit e54ff39b59

View File

@ -0,0 +1,9 @@
from thefuck.utils import for_app
@for_app('apt-get')
def match(command):
return 'Do you want to continue?' in command.output
def get_new_command(command):
new_command = command.script.replace('apt-get', 'apt-get -y')
return new_command