1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00

#322: Use unicode in vagrant_up rule

This commit is contained in:
Vladimir Iakovlev 2017-03-14 11:13:43 +01:00
parent 971c7e1b3f
commit 825f7986c7

View File

@ -13,8 +13,9 @@ def get_new_command(command):
if len(cmds) >= 3:
machine = cmds[2]
startAllInstances = shell.and_("vagrant up", command.script)
start_all_instances = shell.and_(u"vagrant up", command.script)
if machine is None:
return startAllInstances
return start_all_instances
else:
return [shell.and_("vagrant up " + machine, command.script), startAllInstances]
return [shell.and_(u"vagrant up {}".format(machine), command.script),
start_all_instances]