1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-20 01:28:56 +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 import re
from thefuck.utils import replace_command from thefuck.utils import replace_command, for_app
@for_app("conda")
def match(command): def match(command):
''' """
Match a mistyped 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): def get_new_command(command):