1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#715: Fix work on Windows

This commit is contained in:
Vladimir Iakovlev 2017-10-25 19:16:28 +02:00
parent b2789ad899
commit 08082e606b

View File

@ -10,7 +10,6 @@ from ..argument_parser import Parser # noqa: E402
from ..utils import get_installation_info # noqa: E402
from .alias import print_alias # noqa: E402
from .fix_command import fix_command # noqa: E402
from .shell_logger import shell_logger # noqa: E402
def main():
@ -27,6 +26,11 @@ def main():
elif known_args.alias:
print_alias(known_args)
elif known_args.shell_logger:
shell_logger(known_args.shell_logger)
try:
from .shell_logger import shell_logger # noqa: E402
except ImportError:
logs.warn('Shell logger supports only Linux and macOS')
else:
shell_logger(known_args.shell_logger)
else:
parser.print_usage()