Add command list.

This commit is contained in:
Sergey Vartanov 2021-09-27 23:55:30 +03:00
parent 9fc5c2069a
commit 4f1be1c60a
3 changed files with 26 additions and 15 deletions

View file

@ -11,7 +11,7 @@ from moire.moire import Tag
from map_machine import ui
from map_machine.icon import ShapeExtractor
from map_machine.ui import COMMANDS
from map_machine.ui import COMMAND_LINES
from map_machine.workspace import workspace
__author__ = "Sergey Vartanov"
@ -143,7 +143,7 @@ class MapMachineMoire(Default, ABC):
def command(self, args: Arguments) -> str:
"""Bash command from integration tests."""
return "map-machine " + " ".join(COMMANDS[self.clear(args[0])])
return "map-machine " + " ".join(COMMAND_LINES[self.clear(args[0])])
def icon(self, args: Arguments) -> str:
"""Image with Röntgen icon."""