1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

consistency with quotes and use for_app

This commit is contained in:
Connor Martin 2021-02-01 20:20:23 -06:00
parent 9a91f6cc70
commit 958f8a0b3a

View File

@ -1,12 +1,13 @@
import re
from thefuck.utils import replace_command
from thefuck.utils import replace_command, for_app
@for_app("conda")
def match(command):
'''
"""
Match a mistyped command
'''
return 'conda' in command.script and "Did you mean 'conda" in command.output
"""
return "conda" in command.script and "Did you mean 'conda" in command.output
def get_new_command(command):